Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle error in app:packageDebug, Android Studio, Ubuntu

I am trying to run a project in Android Studio on Ubuntu but it fails with the following error in gradle.

Error: Execution failed for task ':app:packageDebug'. > org/bouncycastle/util/Store

I have been using Android Studio in Windows but never came across this error.

I tried doing this but it didn't work.

Please guide me how to solve this problem.

like image 535
Mohan Pednekar Avatar asked Nov 01 '22 05:11

Mohan Pednekar


1 Answers

Not sure if this totally applies, since you're running Ubuntu, but the same error on OSX was solved for me by changing the JRE that Android Studio was running under (following guidance from here: https://intellij-support.jetbrains.com/entries/23455956-Selecting-the-JDK-version-the-IDE-will-run-under)

I set the JRE version that Android Studio runs under to 1.7.* by changing this in the Info.plist file on OSX:

<key>JVMVersion</key>
<string>1.7*</string>

The version was confirmed in the "About" dialog. It changed from 1.6 to 1.7, and the BouncyCastle problem went away.

like image 101
Sean Aitken Avatar answered Nov 09 '22 08:11

Sean Aitken