I'm getting the following error when trying to build a signed APK with ProGuard enabled:
Error:Execution failed for task ':app:packageRelease'. Unable to compute hash of D:\\Work\\Android\\MyApp\\app\\build\\intermediates\\classes-proguard\\release\\classes.jar
I checked the path given, and there is no classes.jar file. Where can I get the .jar from?
Check this question or just add
-keep public class com.google.android.gms.**
to your proguard rules.
Add these to your proguard-project.txt
If you are using support libraries.
-dontwarn android.support.v7.**
-keep class android.support.v7.** { *; }
-keep interface android.support.v7.** { *; }
Credits to this post .
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.