Arch Linux上的Android Studio错误

时间:2022-09-06 18:50:40

i install Android Studio on my Arch linux.but after running I got this Erorr:

我在我的Arch linux上安装Android Studio。但是在运行之后我得到了这个Erorr:

Sync with Gradle for project 'My Application' failed: Cause: error=13, Permission denied

this is my whole Log from Android Studio: download log file

这是我从Android Studio的整个日志:下载日志文件

i install Android studio version 2.2.2 and useing my java package:

我安装Android studio版本2.2.2并使用我的java包:

[sayres@Arch bin]$ java -version openjdk version "1.8.0_112" ,OpenJDK Runtime Environment (build 1.8.0_112-b15) ,OpenJDK 64-Bit Server VM (build 25.112-b15, mixed mode)

merci

2 个解决方案

#1


0  

Try running android studio with root permissions using sudo. Another fix for this could include executing chmod +x gradlew in your project directory.

尝试使用sudo运行具有root权限的android工作室。另一个解决方法可能包括在项目目录中执行chmod + x gradlew。

This second command just sets the execution flag for your grade wrapper.

第二个命令只为您的成绩包装器设置执行标志。

#2


0  

Android-sdk will is installed on /opt/android-sdk , so you have to run it as root, or better add a new user group.

Android-sdk将安装在/ opt / android-sdk上,因此您必须以root身份运行它,或者更好地添加新用户组。

The instructions are available on Arch Wiki: https://wiki.archlinux.org/index.php/android

Arch Wiki上提供了相关说明:https://wiki.archlinux.org/index.php/android

#1


0  

Try running android studio with root permissions using sudo. Another fix for this could include executing chmod +x gradlew in your project directory.

尝试使用sudo运行具有root权限的android工作室。另一个解决方法可能包括在项目目录中执行chmod + x gradlew。

This second command just sets the execution flag for your grade wrapper.

第二个命令只为您的成绩包装器设置执行标志。

#2


0  

Android-sdk will is installed on /opt/android-sdk , so you have to run it as root, or better add a new user group.

Android-sdk将安装在/ opt / android-sdk上,因此您必须以root身份运行它,或者更好地添加新用户组。

The instructions are available on Arch Wiki: https://wiki.archlinux.org/index.php/android

Arch Wiki上提供了相关说明:https://wiki.archlinux.org/index.php/android