React Native打包报错: Task :react-native-picker:verifyReleaseResources FAILE

RN打包报错:

Task :react-native-picker:verifyReleaseResources FAILED
Execution failed for task ':react-native-picker:verifyReleaseResources'.

解决方法:
修改文件react-native-picker中的版本信息。
路径:node_modules/react-native-picker/android/build.gradle

android {
    // compileSdkVersion 27
    // buildToolsVersion "23.0.1"
    compileSdkVersion 31
    buildToolsVersion "31.0.0"

    defaultConfig {
        // minSdkVersion 16
        // targetSdkVersion 27
        minSdkVersion 21
        targetSdkVersion 31
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

你可能感兴趣的:(React Native打包报错: Task :react-native-picker:verifyReleaseResources FAILE)