Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio does not have write access

I am using android studio 3.4.2. When I try to update the android studio it says

"Studio does not have write access to /app/extra. Please Run it by a privileged user to update"

How to solve it?

enter image description here

like image 636
Mir Rahed Uddin Avatar asked Sep 30 '19 19:09

Mir Rahed Uddin


2 Answers

I would suggest setting up your current user as the owner of Android Studio

Linux

sudo chown -R $USER:$USER /usr/bin/android-studio

Mac

sudo chown -R $USER /Applications/Android\ Studio.app

or if you using android studio portable then you can use custom path like this.

sudo chown -R $USER: pathDirOfYourAndroidStudio/Android\ Studio\ Preview.app
like image 65
Muhammad Numan Avatar answered Sep 21 '22 17:09

Muhammad Numan


I would suggest to set your current user as owner of /usr/bin/android-studio

This will resolve the issue in long term:

sudo chown -R $USER:$USER /usr/bin/android-studio
like image 22
Samuil Banti Avatar answered Sep 19 '22 17:09

Samuil Banti