Android Studio fails to install update (error : Failed to read or create install properties file.)

大憨熊 提交于 2020-06-24 07:02:46

问题


Screenshot of error

I am running [ Android Studio 2.3 Build #AI-162.3764568, built on February 24, 2017 JRE: 1.8.0_112-release-b06 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o] on Ubuntu 16.04. From last few days android studio gives me error on trying to update. I have no idea how to fix this.


回答1:


I ran the Android studio as administrator and then it worked as it is a permission issue.




回答2:


chmod 777 $ANDROID_HOME -R is not a good solution like @spark mentioned.

I solved it by setting ownership to myself

sudo chown $USER:$USER $ANDROID_HOME -R




回答3:


Problem Solved!

The permission of my Android directory was set to write only by root so android-studio was unable to write any changes. I changed the permissions to 777 and it fixed the problem.

Thanks for Help anyways.




回答4:


  1. Delete old version
  2. Reboot
  3. Install new version

hope this helps :)




回答5:


for macos:

sudo chmod -R 777 ~/Library/Android



回答6:


If you are on a *nix system, you should locate $ANDROID_HOME. Mine is installed inside /opt. Given that this directory belongs to root, you will need to invoke sudo before running your command.




回答7:


In windows, you may run Android Studio as Administrator



来源:https://stackoverflow.com/questions/43042032/android-studio-fails-to-install-update-error-failed-to-read-or-create-install

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