Mac adds android's adb and other tools to environment variables

1. Open the .bash_profilefile

cd ~
vim .bash_profile

2. Add environment variables

Add the following two lines to PATHthe

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

How to configure adb command on Mac pro?

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325589455&siteId=291194637