在应用摇篮错误:packageDebug,Android的工作室,Ubuntu的 [英] Gradle error in app:packageDebug, Android Studio, Ubuntu

查看:130
本文介绍了在应用摇篮错误: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.

我试图做<一href="http://stackoverflow.com/questions/16579372/problems-launching-error-in-android-studio-when-packagedebug-at-max-os-x">this但没有奏效。

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

Please guide me how to solve this problem.

推荐答案

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

这篇关于在应用摇篮错误:packageDebug,Android的工作室,Ubuntu的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆