Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Update Error on OSX Yosemite

When I check for updates in Android Studio (1.0.1) it says there is an updates available (1.0.2), but shows this error:

Android Studio does not have write access to /Applications/Android Studio.app/Contents. Please run it by a privileged user to update.

When I try and open it as root, I get an error saying files are missing and it can't start up.

How am I supposed to update with these errors? Should I have installed it as a non-privileged user to start with?

EDIT: I STOPPED GETTING THIS ERROR SEVERAL VERSIONS AGO.

like image 766
aaa90210 Avatar asked Jan 09 '15 09:01

aaa90210


People also ask

How do I update Android Studio on my Macbook?

If you already have an Android Studio build on the Stable channel, you can get the update by clicking Help > Check for Update (Android Studio > Check for Updates on macOS).

Can we install Android Studio in Mac OS?

To install Android Studio on your Mac, proceed as follows: Launch the Android Studio DMG file. Drag and drop Android Studio into the Applications folder, then launch Android Studio. Select whether you want to import previous Android Studio settings, then click OK.

Does Android Studio automatically update?

Stay organized with collections Save and categorize content based on your preferences. Once you install Android Studio, it's easy to keep the Android Studio IDE and Android SDK tools up to date with automatic updates and the Android SDK Manager.


2 Answers

Open terminal and type: sudo chmod -R 777 /Applications/Android\ Studio.app/Contents/

like image 101
thanhnd Avatar answered Oct 04 '22 03:10

thanhnd


As a few people have said, it's probably not best practice to give everyone permissions (using 777) to read, write and execute. However, if you (like me) have multiple accounts on your personal computer it's perfectly okay to give everyone in the same group (using 775) permissions to read, write and execute.

sudo chmod -R 775 /Applications/Android\ Studio.app/

The error comes because a different user account installed Android Studio than is currently trying to update it. For example, I have a personal and work account on my BYOD computer, my personal account installed Android Stuido, but my work account wanted to update it. By default only the owner can write to the app folder. I needed both accounts to have write permissions, both accounts were in the admin group, so I gave write permissions to the whole group.

like image 23
92tonywills Avatar answered Oct 04 '22 01:10

92tonywills