1. Open the .bash_profile
file
cd ~
vim .bash_profile
2. Add environment variables
Add the following two lines to PATH
the
export PATH=$PATH:/Users/你的用户名/Library/Android/sdk/platform-tools
export PATH=$PATH:/Users/你的用户名/Library/Android/sdk/tools
save and exit
3. Update environment variables
source .bash_profile
4. Verify
adb devices
Show the device list is successful
Reference article