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
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
Android: Execute Code in Regular Intervals
Android Studio and Android.Support.V4.App.Fragment: Cannot Resolve Symbol
Android View Layout_Width - How to Change Programmatically
Pdf Library for Android - Pdfbox
Android Webview Utf-8 Not Showing
How to Hide The System/Navigation Bar in Android Ics
How to Stop a Service Running as Foreground
How to Clear The Android Stack of Activities
When Does Application's Oncreate() Method Get Called
Programmatically Lock into Portrait Mode for Certain Operations
How to Get The Time Spent on an Application in Android Programmatically
Android: Tint Using Drawablecompat
Android API 23 Change Navigation View Headerlayout Textview
Remove Android Default Action Bar