在应用摇篮错误:packageDebug,Android的工作室,Ubuntu的

在应用摇篮错误:packageDebug,Android的工作室,Ubuntu的

问题描述:

我试图运行Android的工作室在Ubuntu的一个项目,但它不能在摇篮下面的错误。

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

错误:未能执行任务:应用程序:packageDebug。 >组织/ BouncyCastle的/ UTIL /商店

我一直使用Android的工作室在Windows,但从来没有碰到这个错误。

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

我试图做this但没有奏效。

请指导我如何解决这个问题。

Please guide me how to solve this problem.

不知道这完全适用,因为你运行Ubuntu,但OSX同样的错误解决了,我改变了JRE的机器人工作室正在运行(从这里以下指导下:https://intellij-support.jetbrains.com/entries/23455956-Selecting-the-JDK-version-the-IDE-will-run-under)

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)

我把Android的工作室在1.7上运行的JRE版本*通过OSX改变这个在Info.plist文件:

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>

该版本在关于对话框确认。它改变了从1.6到1.7,BouncyCastle的问题就走了。

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