Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to save local.properties file in android studio

Unable to save '/Users/Jack/Documents/project.io/app/platforms/android/local.properties'/Users/Jack/Documents/project.io/app/platforms/android/local.properties (Permission denied)

I got this error in android studio when trying to import my ionic project.

like image 927
Alicia Brandon Avatar asked Jun 23 '16 17:06

Alicia Brandon


2 Answers

Not sure if you fixed this already. I believe you probably repo clone the project under "sudo". So the owner of that folder will be "root".

The easy way to fix this would be to delete the directory and then re-clone without "sudo".

like image 67
BinaryTofu Avatar answered Nov 15 '22 18:11

BinaryTofu


In your case doing

sudo chmod -R 777 /Users/Jack/Documents/project.io

should work

like image 38
user9817164 Avatar answered Nov 15 '22 18:11

user9817164