Start a console window and run following command
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
When the homebrew installation is finished, run the following command
brew update
brew install android-sdk
brew install android-ndk
brew install ant