\Build\Intermediates\Res\Resources-Anzhi-Debug-Stripped.Ap_' Specified for Property 'Resourcefile' Does Not Exist

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

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

Failed to generating Signed apk from Android Studio

Follow below steps to remove you error -

Step 1 : - Clean your project

Step 2 : - Rebuild your project

Step 3 : - Invalidate and Restart Android Studio

Step 4 : - Edit build.gradle with below code

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

Just remove - this line

shrinkResources false

Problem solve :)

Can't use shrinkResources: res/resources-prod-release-stripped.ap_' specified for property 'resourceFile' does not exist

In order for shrinkResources to work, you must also set

minifyEnabled true

Resource shrinking requires the unused code removal step, otherwise you get the error.

It's stated in the documentation here: https://developer.android.com/studio/build/shrink-code.html#shrink-resources



Related Topics



Leave a reply



Submit