Android Studio SDK installation failed Mac OS X

I am trying to install Android Studio on 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 calculate the required packages.

At the end of the click, I get

Failed to determine required packages

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

I searched a lot in stack overflows and tried many suggestions, but so far nothing has worked.

Things I tried:

  • Changed proxy settings and added * .dl.google.com, * .dl-ssl.google.com to bypass proxies.
  • In the settings of the studio Android changed it to "Automatically detect proxy settings"
  • Tunnelblick is disabled (I use it for VPN).
  • Remote ~ / .android every time before trying
  • The permission for the selected SDK folder has been changed to 777
  • Tried to run the installer using sudo
  • SDK Installer Location
+6
source share
3 answers

After you have not completed the installation, click "Finish" (I believe twice) to go to the Android SDK launcher. Click "Settings" - "Appearance" and "Behavior" → "System Settings" → "Updates" and change the update channel to "Channel Channel".

Close the SDK and restart Android Studio. He should go forward without a problem.

+4
source

Well, after a lot of searching, and asking for help, I found something. Maybe this can help someone else.

I still do not understand what the problem is, but I have a workaround.

Since Android studio was unable to install the SDK, I used homebrew to install android-sdk separately and then linked this folder as ANDROID_HOME and then set this path to the Android Studio SDK, and it worked.

There were problems in updating the SDK that I ran into, but updating from the command line did the trick.

Now everything is working fine.

+2
source

Daniel Mooney's answer is a good way to solve the problem. Just change the update channel to channel channel

0
source

Source: https://habr.com/ru/post/1015678/


All Articles