Task :react-native-real-path:verifyReleaseResources FAILED 打包报错

版本信息

 "react-native": "0.62.2",
  "react-native-real-path": "^1.0.2",

打包报错

Task :react-native-real-path:verifyReleaseResources FAILED

更改

react-native-real-path 的build.gradle中引用资源的版本过于老旧,引起的错误。更改如下配置。

buildscript {
    repositories {
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:1.1.3'
    }
}

apply plugin: 'com.android.library'

android {
    compileSdkVersion 28
    buildToolsVersion "28.0.3"

    defaultConfig {
        minSdkVersion 21
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
    }
    lintOptions {
        abortOnError false
    }
}

dependencies {
    compile 'com.facebook.react:react-native:+'
}
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐