react-native打包apk,react-native-picker报错

打包apk时报错

解决办法

1、找到node_modules/react-native-picker/android/build.gradle文件修改如下:

android {
    compileSdkVersion 28			 //修改此处版本号为28
    buildToolsVersion "28.0.3"         //修改此处版本号为28.0.3

    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"

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

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

你可能感兴趣的:(reactNative)