Ubuntu 14.04 LTS 中的 Android Studio 2.2 出现错误 : "Gradle sync failed: Cause: error=13, Permission denied"

标签 android ubuntu android-studio android-gradle-plugin

我已经在 ubuntu 14.04 LTS 中安装了 android 2.2,但是当我尝试运行 android 应用程序时,它立即显示错误: “Gradle 同步失败:原因:error=13,权限被拒绝。请查阅 IDE 日志以获取更多详细信息(帮助 | 显示日志)”。

当我在尝试运行 android 应用程序时查看终端时,它在终端中显示以下消息: 警告 - roid.tools.ndk.GradleWorkspace - NDK 对项目“MyApp”的支持已禁用,因为该项目不包含任何有效的 native 配置。

我已经在 google/stackoverflow 上尝试了所有可能的解决方案,但没有任何帮助。任何帮助/建议将不胜感激。谢谢。

最佳答案

此错误有时是由于 Java JRE(内置)无法执行而产生的。请尝试以下操作:

chmod +x android-studio/jre/bin/*

关于Ubuntu 14.04 LTS 中的 Android Studio 2.2 出现错误 : "Gradle sync failed: Cause: error=13, Permission denied",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39801372/

相关文章:

android - 在单个进程中使用 AsyncTask(或 Timer)更好,还是在单独的进程中使用 Service 更好?

asp.net-core - 使用 ffmpeg 库处理和将视频转换为 m3u8 的速度非常慢

python - E : Could not get lock/var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)

bash - ubuntu服务器用点重命名文件

android - 编译与编译树与编译文件之间的区别?

android - 如何在数据库中更新其内容字符串时更新 ListView 行?

缓存目录 : Failed to find configured root that contains 的 Android FileProvider

java - flutter doctor --android-licenses 给出了一个java错误

android - Mac 操作系统 : Android Studio quit unexpectedly on first time startup

java - 显示当前时间