Android Studio SDK Installation Failed Mac OS X

ぐ巨炮叔叔 提交于 2019-12-18 06:11:50

问题


I am trying to install Android Studio in Mac OS 10.12.3 I downloaded Android Studio v2.3 for mac.

It installs successfully, but when setting up for the first time, it always shows this error.

An error occurred while trying to compute required packages.

On clicking finish, i get

Failed to determine required packages

When i try to open SDK Manager, all options are disabled and it shows [this][3]. Even if i click on set sdk location, it gives me the same error as before.

I searched a lot in stack overflow and tried many suggestions, but nothing worked till now.

Things i tried:

  • Changed proxy settings, and added *.dl.google.com, *.dl-ssl.google.com in bypass proxys.
  • In android studio preferences, changed it to 'Auto Detect Proxy Settings'
  • Disabled Tunnelblick (i use it for VPN).
  • Deleted ~/.android everytime before trying
  • Changed permission to selected SDK folder to 777
  • Tried to run installer with sudo
  • Different SDK installer location

回答1:


Once you've failed the install, click Finish (I believe twice) to get to the Android SDK launcher. Click on Settings -> Appearance & Behavior -> System Settings -> Updates and change the Update Channel to "Canary Channel".

Close out of the SDK and relaunch the Android Studio. It should go forward w/o issue.




回答2:


Ok, after a lot of search, and asking for help, i found something. Maybe it can help someone else.

I still didn't figure out what was the problem, but i got a workaround.

Since android studio couldn't install SDK, i used homebrew to install android-sdk separately, and then linked that folder as ANDROID_HOME and then set that path in Android Studio SDK, and it worked.

There was some more problems i faced in updating SDK Tools, but updating from command line did the trick.

Now all works fine.




回答3:


Daniel Mooney‘s answer is a good way to solve the problem. Just change the Update Channel to "canary channel"



来源:https://stackoverflow.com/questions/42736242/android-studio-sdk-installation-failed-mac-os-x

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