打包时报Task :aliyun-oss-react-native:verifyReleaseResources FAILED
错误
(原文链接:https://github.com/aliyun/aliyun-oss-react-native/issues/70)
解决方法:
1.首先在 node_modules 中找到报错的包里面的build.gradle,比如我这个就是 2.\node_modules\aliyun-oss-react-native\android\build.gradle
3.修改这个 build.gradle,使其与 android/build.gradle 里面的SDK版本保持一致
4.将 build.gradle 里的 compile 改为 implementation,因为 compile 已过时
android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
// ...
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.facebook.react:react-native:+'
}