问题
On Android Studio 2.2.3 when I am creating a new project or opening previous projects then the following pop ups:
Gradle sync started 7:55:26 AM Gradle sync failed: Cause: error=13, Permission denied Consult IDE log for more details (Help | Show Log)
what should I do? Please help. This is important.
回答1:
On Android Studio folder, do
chmod 777 * -R
I think this not the best answer but it worked for me.
回答2:
I solved this by going to the directory that contained the android-studio folder, which in my case was /usr/local
i.e cd /usr/local
then I ran:
sudo chmod 755 -R android-studio
It even fixed my font not displaying properly.
I'm using ubuntu 18.04
回答3:
go the log files & see the issue. Most of the times it will access denied to jdk. Try changing the java path from android inbuilt jdk to any other version and refresh the project
来源:https://stackoverflow.com/questions/41928362/on-android-studio-2-2-3-gradle-sync-failed-cause-error-13-permission-denied-o