Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error while generating signed apk task app:packageRelease

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?

like image 960
Avinash_ks Avatar asked Sep 26 '16 13:09

Avinash_ks


1 Answers

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'
    }
}
like image 108
Dimitar Avatar answered Oct 13 '22 19:10

Dimitar