简体   繁体   中英

transformClassAndResourcWithProguardForRelease error when I try export signed apk file in android app with proguard enabled?

It is the first time that I am using the proguard with the android app so it is kind of confusing me. Here's scenario about my problem: I enable the proguard in the gradle file and I run it on my phone it is working perfectly (without any error) but if I want to generate signed apk file then it shows this error . Why I want to generate the signed apk file because I want to check whether the proguard obfuscating and optimizing my app or not by decompiling the apk file. Hence, My questions are: is there any way to check whether proguard is obfuscating and optimizing the app or not? and what is the problem with my generating signed apk file? Here are the pictures of my proguard rules file: First , Second , Third and Last one .

It is very likely that you got some warnings when running ProGuard in a release build. You should run the build with the -i flag and add also -verbose to your ProGuard rules to get a more verbose output.

If you decide to ignore the warnings, you can also add -ignorewarnings to your rules and ProGuard will continue executing regardless if it detects some problems that you should fix.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM