Gradle Build Failed For Task app:processReleaseResources

后端 未结 8 1464
野趣味
野趣味 2020-12-20 15:04
apply plugin: \'com.android.application\'

android {
    compileSdkVersion 23
    buildToolsVersion \"22.0.1\"

    defaultConfig {
        applicationId \"com.nusec         


        
8条回答
  •  [愿得一人]
    2020-12-20 16:01

    My solution came from here

    REMOVE ALL IMAGES FROM RES/ DRAWABLE THAT YOU DON'T NEED

    https://github.com/facebook/react-native/issues/19239

    Credit for --> ZeroCool00

    For those who are doing this before generating apk

    react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res

    it generate unnecessary drawable images in drawable folder. so make sure to remove it and try again.

    android-> app -> src -> main -> res -> drawable

提交回复
热议问题