7

Error:A problem was found with the configuration of task ':app:packageRelease'. File '/Volumes/Data/Android apps/NammaKarnataka-master/app/build/intermediates/res/resources-release-stripped.ap_' specified for property 'resourceFile' does not exist.

The following error message occurred while I tried to generate signed apk on Android studio 2.2.
What additional information is required in order to solve this issue?

Willi Mentzel
  • 27,862
  • 20
  • 113
  • 121
Avinash_ks
  • 173
  • 3
  • 8
  • Possible duplicate - http://stackoverflow.com/questions/36540676/build-intermediates-res-resources-anzhi-debug-stripped-ap-specified-for-prope – Tushar Patil Sep 26 '16 at 13:23
  • can you post your build.gradle file ? – nishith kumar Sep 26 '16 at 13:23
  • Thank you. setting "shrinkResources false" resolved the issue. – Avinash_ks Sep 26 '16 at 15:34
  • Possible duplicate of [\build\intermediates\res\resources-anzhi-debug-stripped.ap\_' specified for property 'resourceFile' does not exist](http://stackoverflow.com/questions/36540676/build-intermediates-res-resources-anzhi-debug-stripped-ap-specified-for-prope) – wojtek.kalicinski Jan 09 '17 at 17:59

2 Answers2

17

Add shrinkResources, set to false, to the release clause:

buildTypes {
    release {
        signingConfig signingConfigs.release
        minifyEnabled false
        shrinkResources false  //ADD THIS
        zipAlignEnabled true
        debuggable false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
Dimitar
  • 4,402
  • 4
  • 31
  • 47
0

Command flutter clean helps me.

t-geh
  • 129
  • 1
  • 4