Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio - Update to 2.3 - Studio doesn't have write access

I didn't have this problem before. When i am trying to update Android Studio to 2.3, i get this:

Studio does not have write access to /private/var/folders/00/n4yy8fsx0njck05bfll1t3_w0000gn/T/AppTranslocation/2D9E214E-60BE-41D9-9843-3536E011FD7E/d/Android Studio.app/Contents. Please run it by a privileged user to update.

The account that i am in is Admin account and i also tried to give full access to that directory.

chmod -R 777 /private/var/....

but nothing worked. Any help will be much appreciated.

like image 368
Vamsi Challa Avatar asked Mar 06 '17 10:03

Vamsi Challa


2 Answers

I experienced the same issue. Resolved it by running Android studio with sudo from the command line:

sudo /Applications/Android\ Studio.app/Contents/MacOS/studio

After the update has been downloaded you have to run the command one more time for Android studio to copy over the correct files.

Next time you run Android studio with your non-privileged user it should be updated.

like image 200
luckytommy Avatar answered Oct 20 '22 08:10

luckytommy


This also happened to me, but it was because the app was not in the /Applications folder, after moving it to the right folder it ran without problems.

like image 37
jgutix Avatar answered Oct 20 '22 07:10

jgutix