美文网首页
react-native-picker 打包报错verifyRe

react-native-picker 打包报错verifyRe

作者: 秃头大叔 | 来源:发表于2019-07-22 18:46 被阅读0次

    react-native-picker 打包报错

    Execution failed for task ':react-native-picker:verifyReleaseResources'
    在node_module 里找到响应的build.gradle文件。修改版本信息如下。类似的报错都是因为版本过低导致,按同样方法修改即可

    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:+'
    }
    
    

    相关文章

      网友评论

          本文标题:react-native-picker 打包报错verifyRe

          本文链接:https://www.haomeiwen.com/subject/ikcglctx.html