Missing platform-tools when installing Android Studio on Mac OSx

Viewed 23055

I am trying to install Android Studio on Mac OSx, with the goal of learning some Android development. The instructions provided were simply to:

1. Launch the .dmg file you downloaded.
2. Drag and drop Android Studio into the Applications folder.
3. Open Android Studio and follow the setup wizard to install any necessary SDK tools.

I get to the setup wizard, select everything, give it 6 gigs of ram when asked, then it proceeds to download components and install. However, at some point a popup appears:

The following SDK component was not installed: platform-tools

The output shows:

Ignoring unknown package filter 'platform-tools'
Installing Archives:
  Preparing to install archives
  Installing Google APIs, Android API 23, revision 1
    Installed Google APIs, Android API 23, revision 1
  Installing Google APIs Intel x86 Atom System Image, Google Inc. API 23, revision 12
    Installed Google APIs Intel x86 Atom System Image, Google Inc. API 23, revision 12
    Updated ADB to support the USB devices declared in the SDK add-ons.
  Stopping ADB server failed (code -1).
  Unable to run 'adb': Cannot run program "/Users/me/Library/Android/sdk/platform-tools/adb": error=2, No such file or directory.
  Starting ADB server failed (code -1).
  Done. 2 packages installed.
Ignoring unknown package filter 'platform-tools'

If I proceed to click "Finish" button, it opens up the Android Studio. But under Preferences -> Appearance & Behavior -> System Settings -> Android SDK, I see an error:

Please specify a Android SDK Location

There is Standalone SDK Tools, but I was under the impression that Android Studio would come with all packages needed to develop in Android:

Note: If you have not yet downloaded the SDK tools, download them now. For a complete IDE and Android SDK package, we recommend downloading Android Studio.

So I'm kinda lost on what things I should be installing. How can I get my Android Studio to 'work' on my Mac?

6 Answers

Had similar issue (Android studio 3.0). Happened because I was behind a corporate proxy and the tools were not downloaded during setup.

Solution:

  1. Configure proxy in settings -> HTTP proxy
  2. Re-install Android Studio. proxy configuration will persist and the installation should succeed the second time (got additional window with the tools to download)
Related