Install the Android SDK through Homebrew:
brew update && brew install android-sdk
Add the $ANDROID_SDK_ROOT
to your shell. By default OS X uses bash. r24.0.1
is the latest version at the time of writing this. This might differ for you. Check brew’s installation output. It has the correct export line in it.
The following command should take care of it: