Android Studio cannot update

纵饮孤独 提交于 2019-12-08 20:42:58

问题


I am running Mint 14 (Linux) , and have run into a major issue with using Android Studio. When running the update feature, all of the packages come back as "ACCESS DENIED". how can I fix this? How can I grant the permission to download and install.

Additional information: the studio.sh is running out of my root directory under /usr/bin/android-studio/bin

Thank you for your help, my grade depends on this.


回答1:


This is probably because you do not have sufficient permissions. Try changing the owner of your studio installation folder. Try the following command.

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




回答2:


go to android studio Click Help>>Check for update>> You will be told to run under root...a certain directory is given usr/local/etc/android-studio navigate to usr/local/etc/android-studio/bin ... Then run sudo sh studio.sh

--It will update as soon as you press enter...Hope it helps bro

Sorry I answered late though anyways it will help others




回答3:


if your using Ubuntu android 3.0v and getting error while updating to latest version and if you installed android studio using android installation guide example official video then you have to run sudo chown -R $USER:$USER /usr/local/android-studio/ this commend in your terminal

and make sure your android studio folder available in /local/ or any other folder and make necessary changes to /usr/etc path




回答4:


In latest version of Android Studio, Updates are handled by snap, so you can type 'snap refresh' command inside terminal of Android Studio to update Android Studio as well.




回答5:


I guess its too late for you but the problem is you dont run android studio in root.

Go to /android-studio/bin in the console and run "sudo sh studio.sh" and you click to update the software.



来源:https://stackoverflow.com/questions/18724582/android-studio-cannot-update

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!