Task :aliyun-oss-react-native:verifyReleaseResources FAILED

打包时报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:+'
}

有需要开发项目的可以联系我

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。