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
String-Date Conversion with Nanoseconds
Click Is Not Working on the Listitem Listview Android
How Get Value from Linkedhashmap Based on Index Not on Key
Boot_Completed Not Working on Android 10 Q API Level 29
Java Apns Certificate Error with "Derinputstream.Getlength(): Lengthtag=109, Too Big."
Is Ruby Pass-By-Value or Pass-By-Reference
How to Make Spring Inject Value into a Static Field
Why Comparing Integer with Int Can Throw Nullpointerexception in Java
Polygon Touch Detection Google Map API V2
How to Blur Background Images in Android
Android Calculate Days Between Two Dates
How to Create JSON Object Using String
How to Remove Only Trailing Spaces of a String in Java and Keep Leading Spaces
Android Text to Speech Male Voice