2

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?

Mr Pablo
  • 4,109
  • 8
  • 51
  • 104

2 Answers2

0

Check this question or just add

-keep public class com.google.android.gms.**

to your proguard rules.

Community
  • 1
  • 1
Slonorib
  • 79
  • 2
  • 11
0

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.

Community
  • 1
  • 1
frogatto
  • 28,539
  • 11
  • 83
  • 129