\build\intermediates\res\resources-anzhi-debug-stripped.ap_' specified for property 'resourceFile' does not exist

后端 未结 8 1038
攒了一身酷
攒了一身酷 2020-12-01 05:05

I updated Android Studio to version 2.0. The build failed and also takes longer than Android Studio version 1.5 to build. Every time I run my application, I clean and reload

8条回答
  •  难免孤独
    2020-12-01 05:36

    Having same issue ! So instant run is not compatible with shrinkResources

    1) if use Android Studio 2.2

    shrinkResources false

    buildTypes {
        release {
            signingConfig signingConfigs.release
            minifyEnabled false
            shrinkResources false
            zipAlignEnabled true
            debuggable false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    

    2) if use Android Studio 2.0

    • open setting

    • Follow this image

    • now run your project

提交回复
热议问题