Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The IDE cannot create the directory. Possible reason: parent directory is read-only or the user lacks necessary permissions

When I trying to install Android Studio on my PC so the error occurs it says:

The IDE cannot create the directory. Possible reason: parent directory is read-only or the user lacks necessary permissions.

If you have modified the idea.config.path property, please make sure it is correct, otherwise, please re-install the IDE.


Location: C:\Users\Acer/.AndroidStudio4.0/config java.nio.file.AccessDeniedException: C:\Users\Acer.AndroidStudio4.0

enter image description here

like image 412
Amit Chauhan Avatar asked Aug 21 '20 05:08

Amit Chauhan


2 Answers

I had a similar problem on Ubuntu. At first, I tried running ./studio.sh as root. However, I faced other issues down the line. So I cleaned the .cache directory that was created by the root user, also deleted the Google/AndroidStudio* and "Android Open Source Project" under .config. Then I was able to run ./studio.sh without any root permissions.

like image 137
Amytis Avatar answered Sep 17 '22 13:09

Amytis


I just ran into this bug on a MacBook and to fix it I ran: sudo chmod 777 ~/Library/Application\ Support/Google in the terminal.

like image 44
Dragos Avatar answered Sep 16 '22 13:09

Dragos