react-native-picker 打包報錯
Execution failed for task ':react-native-picker:verifyReleaseResources'
在node_module 里找到響應(yīng)的build.gradle文件码泞。修改版本信息如下。類似的報錯都是因為版本過低導(dǎo)致,按同樣方法修改即可
apply plugin: 'com.android.library'
android {
compileSdkVersion 28
buildToolsVersion "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'
}
}
}
//compile 替換為implementation
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.facebook.react:react-native:+'
}