Where to install Android SDK on Mac OS X?

AndroidConfigurationMacos

Android Problem Overview


Where should the Android SDK be installed on Mac OS X?

Android Solutions


Solution 1 - Android

The easiest (and standard) way to install Android SDK under OS X is to use brew.

brew install android-sdk

If you do not have homebrew, here's how to get it.

This will install Android SDK into /usr/local/Cellar/android-sdk/ and, at this moment, this is the best location to install it.

Solution 2 - Android

In homebrew the android-sdk has migrated from homebrew/core to homebrew/cask.

brew tap homebrew/cask

and install android-sdk using

brew install android-sdk --cask 

You will have to add the ANDROID_HOME to profile (.zshrc or .bashrc)

export ANDROID_HOME=/usr/local/share/android-sdk

If you prefer otherwise, copy the package to

~/opt/local/android-sdk-mac

Solution 3 - Android

When I installed Android Studio 1.0 it ended up in

>/Library/Android/sdk/

Solution 4 - Android

My personal preference is to put it in ~/opt/local/android-sdk-mac or /Developer/android-sdk-mac the latter being where Xcode and all the Apple Dev tools are held.

Solution 5 - Android

By default the android sdk installer path is ~/Library/Android/sdk/

Solution 6 - Android

You can install android-sdk in different ways

  1. homebrew
    Install brew using command from [brew.sh][2]

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"  
    

Install android-sdk using

    brew install android-sdk

Now android-sdk will be installed in /usr/local/opt/android-sdk

    export ANDROID_HOME=/usr/local/opt/android-sdk

2. If you installed android studio following the [website][3],
android-sdk will be installed in ~/Library/Android/sdk

    export ANDROID_HOME=~/Library/Android/sdk

I think these defaults make sense and its better to stick to it [2]: http://brew.sh [3]: https://developer.android.com/studio/index.html

Solution 7 - Android

From http://developer.android.com/sdk/index.html, it seems that you can install the SDK anywhere, so long as you

  1. "execute the android tool in the <sdk>/tools/ folder"
  2. Add the <sdk>/tools directory to your system path

More info can be found here: http://developer.android.com/sdk/installing.html

Solution 8 - Android

I just have mine in MyUser/Documents/Development. I'm the only one that used my Mac, so I didn't need to worry about making it accessible system-wide.

Solution 9 - Android

I put mine in /Developer/SDKs I had to authenticate to do that…but since there's no consensus I thought that it sounded like a place I'd remember.

Solution 10 - Android

I ended up placing my at ~/sdks/android-sdk-mac_x86. I like to keep all of my SDKs in one place and for me an sdk folder under my home directory makes the most sense.

Solution 11 - Android

brew install android-sdk --cask 

Solution 12 - Android

I have been toying with this as well. I initially had it in my documents folder, but decided that didn't make 'philosophical' sense. I decided to create an Android directory in my home folder and place Eclipse and the Android SKK in there.

Solution 13 - Android

A simple way is changing to required sdk in some android project the number of

> compileSdkVersion

in build.gradle file and you can install with the manager

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionCarl ManasterView Question on Stackoverflow
Solution 1 - AndroidsorinView Answer on Stackoverflow
Solution 2 - AndroidgmuraleekrishnaView Answer on Stackoverflow
Solution 3 - AndroidraraView Answer on Stackoverflow
Solution 4 - AndroidJohn WangView Answer on Stackoverflow
Solution 5 - AndroidWeston GangerView Answer on Stackoverflow
Solution 6 - Androidsudo bangbangView Answer on Stackoverflow
Solution 7 - AndroidJustin JohnsonView Answer on Stackoverflow
Solution 8 - AndroidCaseyBView Answer on Stackoverflow
Solution 9 - AndroidairgrayView Answer on Stackoverflow
Solution 10 - AndroidTanner WatsonView Answer on Stackoverflow
Solution 11 - AndroidKiruthika kanagarajanView Answer on Stackoverflow
Solution 12 - AndroidfiniteloopView Answer on Stackoverflow
Solution 13 - AndroidÁlvaro AgüeroView Answer on Stackoverflow