Where should the Android SDK be installed on Mac OS X?
When I installed Android Studio 1.0 it ended up in
/Library/Android/sdk/
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.
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.
In homebrew the android-sdk
has migrated from homebrew/core
to homebrew/cask
.
brew tap homebrew/cask
and install android-sdk
using
brew cask install android-sdk
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
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.
From http://developer.android.com/sdk/index.html, it seems that you can install the SDK anywhere, so long as you
<sdk>/tools/
folder"<sdk>/tools
directory to your system pathMore info can be found here: http://developer.android.com/sdk/installing.html