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.
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).
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.
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.
Open terminal and type: sudo chmod -R 777 /Applications/Android\ Studio.app/Contents/
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With