简体   繁体   中英

Build Failing in Android Studio

When I am trying to run my app, Gradle is failing to make the build. It is returning this error:

Error:Execution failed for task ':app:packageDebug'. class org.bouncycastle.asn1.ASN1Primitive overrides final method equals.(Ljava/lang/Object;)Z

I hope you have files bcprov-jdk15on-1.48.jar or similar which conflicts with Android Studio.

Please removed those jar files from Android sdk and java for example Mac OS: android-sdk-macosx/tools/lib/ and /Library/Java/Extensions/ Windows OS: Android sdk installed path and Java

and delete .gradle folder from the home directory from your project.

Rebuild the project again, it will help to gradle to load and build the project

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM