Make sure the doctor is happy (do what it tells you): brew doctor
Install Homebrew: ruby -e '$(curl -fsSL )' XCode command line tools are installed ( xcode-select -install will prompt up a dialog).Prerequisites (for Homebrew at a minimum, lots of other tools need these too): Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.