TLDR:
- Add read/write permissions to the folder that the IDE mentions.
- If it does not exist create it
- Ensure that the folder has READ/Write permissions for your local user.
- After all this the app would still crash when opening new tabs. So i had to run
defaults write com.google.android.studio AppleWindowTabbingMode manual
as found in this answer. https://stackoverflow.com/a/64907362/1461176
I ran into this issue recently on Mac OS Sierra. I wasn't comfortable running the app in sudo or setting generic directories like Library/Catches
as globally read/write by all users.
The full message was:
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: /Users/username/Library/Application Support/Google/AndroidStudio4.1
java.nio.file.AccessDeniedException: /Users/username/Library/Application Support/Google/AndroidStudio4.1
I have another mac that has Android Studio already setup. So I investigated how it was setup.
The location of the folder was slightly different: /Users/username/Library/Application\ Support/AndroidStudio4.1/
.
Notice it's not in the shared Google
folder. This shouldn't matter but I believe can be configured with idea.config.path
.
The difference in path is probably related to the version of Android Studio that was initially installed.
After opening the permissions on that folder in the working computer, i noticed it had Read/Write
for my local user.
Yet the offending computer did not.

I can confirm that editing the permissions fixes this issue and you can reproduce if you remove it.
- cd to the path output in the error in my case that was: `cd /Users/username/Library/Application Support/Google/AndroidStudio4.1
- If it does not exist create it
sudo mkdir /Users/username/Library/Application Support/Google/AndroidStudio4.1
- open the parent folder
open /Users/username/Library/Application Support/Google/
- Right click -> Get Info on the
/Users/username/Library/Application Support/Google/AndroidStudio4.1
- Select the lock in the bottom right
- Select the plus
+
button on the bottom right.
- Enter your login password
- Select your username
- Change Privilege field for your username to Read/Write
- Press the lock
- Close the window
- Open android Studio
Similar Error
If you receive an error related to creating temp files in the the folder the folder is present but it's permissions are still not correct.

Possible reason: the 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: /Users/username/Library/Application Support/Google/AndroidStudio4.1
java.nio.file.AccessDeniedException: /Users/username/Library/Application Support/Google/AndroidStudio4.1/ij1547365868.tmp