应用程序中的 Gradle 错误:packageDebug、Android Studio、Ubuntu [英] Gradle error in app:packageDebug, Android Studio, Ubuntu

查看:30
本文介绍了应用程序中的 Gradle 错误:packageDebug、Android Studio、Ubuntu的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Ubuntu 上的 Android Studio 中运行一个项目,但它在 gradle 中失败并出现以下错误.

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

错误:任务:app:packageDebug"执行失败.<代码>>org/bouncycastle/util/Store

我一直在 Windows 中使用 Android Studio,但从未遇到过此错误.

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.

推荐答案

不确定这是否完全适用,因为您运行的是 Ubuntu,但是通过更改 Android Studio 正在运行的 JRE 为我解决了 OSX 上的相同错误下(遵循此处的指导: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 Studio 的 JRE 版本设置为 1.7.*,方法是在 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.

这篇关于应用程序中的 Gradle 错误:packageDebug、Android Studio、Ubuntu的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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