On Android Studio 2.2.3 Gradle sync failed: Cause: error=13, Permission denied on Linux Mint 18

断了今生、忘了曾经 提交于 2021-02-18 22:33:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!