React-native安卓打包出现Execution failed for task ':react-native-fetch-blob:verifyReleaseResources

闽高峯
2023-12-01

原因:项目的gradle版本升级了导致第三方插件无法打包

解决方法:从node_modules文件夹中找到 react-native-fetch-blob/android/build.gradle ,并修改如下部分

compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}

改为

compileSdkVersion 26
buildToolsVersion "26.0.3"
defaultConfig {
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName "1.0"
}

 类似资料: