Error:Execution Failed for Task ':App:Packagerelease'. > Unable to Compute Hash of /../Androidstudioprojects/../Classes.Jar

Error:Execution failed for task ':app:packageRelease'. Unable to compute hash of /../AndroidStudioProjects/../classes.jar

I figured out the problem:

Open up the proguard-rules.pro for your project and add this to the bottom:

-dontwarn java.nio.file.Files
-dontwarn java.nio.file.Path
-dontwarn java.nio.file.OpenOption
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement

Basically how I solved it was this I tried to run my app in 'release' mode and got a bunch of errors similar to this guy here: https://github.com/square/okio/issues/144

I pretty much followed what he said and fixed it.

Hope this can help others with generating their APK's!

Unable to compute hash of

Please, read warnings in console carefully. I`ve also faced with similar issue and in my case there were warnings about processing one of third party libraries. After applying corresponding changes related with the library to proguard file, all started to work correctly

Can't generate signed apk from Android Studio “Execution failed for task ':packageRelease'” when using JodaTime in some classes

I found a answer to this problem.

Should add following lines to pro-guard file:

-dontwarn org.joda.convert.**
-dontwarn org.joda.time.**
-keep class org.joda.time.** { *; }
-keep interface org.joda.time.** { *;}

I would like thank Exaqt for the help.



Related Topics



Leave a reply



Submit