Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio SDK Installation Failed

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
like image 251
diganta das Avatar asked Mar 11 '17 14:03

diganta das


2 Answers

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.

like image 102
Daniel Mooney Avatar answered Sep 27 '22 18:09

Daniel Mooney


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.

like image 28
diganta das Avatar answered Sep 27 '22 18:09

diganta das