Bare essentials Android SDK installation, forked from: https://gist.github.com/patrickhammond/4ddbe49a67e5eb1b9c03 and modified to own needs
Prerequisites:
Make sure the doctor is happy (do what it tells you):
$ brew doctor
Use Homebrew to install Android dev tools:
Optional:
$ brew install ant
$ brew install maven
$ brew install gradle
Mandatory:
$ brew install Caskroom/cask/android-sdk
$ brew install Caskroom/cask/android-ndk
Install all of the Android SDK components (you will be prompted to agree to license info and then this will take a while to run):
$ android update sdk --no-ui
Add the following environment variables:
$ export ANDROID_HOME=/usr/local/opt/android-sdk \
ANDROID_NDK_HOME=/usr/local/opt/android-ndk
Periodically run these commands again to ensure you're staying up to date:
$ brew update
$ android update sdk --no-ui