react-native 启动服务器时候报错Could not install the app on the device, read the error above for details.

今天药忘吃喽~ 2022-07-16 15:07 311阅读 0赞

Center

这个是因为react-native版本升级了,但是在项目的build.gradle没有改成升级的版本号

一般修改以下两个地方:

  1. android/build.gradle

    dependencies {

    1. classpath 'com.android.tools.build:gradle:1.2.3' //修改的版本
    2. // NOTE: Do not place your application dependencies here; they belong
    3. // in the individual module build.gradle files

    }

    2.android/app/build.gradle

    android {

    1. compileSdkVersion 23
    2. buildToolsVersion "23.0.1" //修改的版本 }

发表评论

表情:
评论列表 (有 0 条评论,311人围观)

还没有评论,来说两句吧...

相关阅读