Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Varun Bansal6,684 Points
I am trying to build an apk for the weather app and i am getting an error:
Error:Execution failed for task ':app:packageRelease'.
Unable to compute hash of /Volumes/SecondaryHD/HomeWork/AndroidProjects/Stormy/app/build/intermediates/classes-proguard/release/classes.jar
I even tried adding these lines to progurard-rules.pro but it didn't work either
-dontwarn java.nio.file.Files -dontwarn java.nio.file.Path -dontwarn java.nio.file.OpenOption -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement -dontwarn android.net.http.AndroidHttpClient -dontwarn com.google.android.gms.**
Also based on your video i should have runProguard true line in my gradle file but i don't have it and adding it gives an error, i have minifyEnabled true instead
Please let me know how to fix this build error