Android Studio Error on Arch Linux

2.3k Views Asked by At

i install Android Studio on my Arch linux.but after running I got this 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

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

[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

There are 2 best solutions below

1
On

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

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

3
On

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

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