Homebrew Installation
$ brew cask install android-platform-tools
Wait until the installation is complete, verify:
$ adb devices
Installation Manual
1, if you have previously installed, delete old files
rm -rf ~/.android-sdk-macosx/
2, download android-sdk-macosx, Download: developer.android.com
3, the downloaded file to decompress and move ~ / .android-sdk-macosx
cd ~/Downloads(你的下载目录)/
unzip android-sdk*.zip
mv android-sdk-macosx/ ~/.android-sdk-macosx
4, run SDK Manager
sh ~/.android-sdk-macosx/tools/android
5, according to your need to choose, (I just need to Android SDK Platform-tools) [Optional Step]
6, selected the Install
7, the environment variable settings
echo 'export PATH=$PATH:~/.android-sdk-macosx/platform-tools/' >> ~/.bash_profile
8, update the configuration file
source ~/.bash_profile
9, test whether the normal installation
adb devices