• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Bug with Proguard minifyEnabled on A/S 1.5.1 ?

ac4android

Well-Known Member
Nov 3, 2015
198
29
This might be a bug, don't know whether it has been reported.

I tried to compile an apk-release.apk using "Build -> Generate signed APK..." and A/S 1.5.1 threw this error:
Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'. > java.io.IOException: Please correct the above warnings first

I went into build.gradle and disabled ninifyEnabled, like this :
Code:
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
Then it worked well.

QUESTION: I'd rather have proguard minifyEnabled to scramble the code, is there a work around?
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones