Configure global adb in mac & zsh environment

  1. View the Terminal configuration in the settingsInsert image description here

  2. Those that are not zsh can be moved away! !

  3. Here is zsh, open the terminal, enteropen .zshrc

  4. Add the platform-tools path to the file, for example, mine is#adb export PATH=${PATH}:/Users/xxxxxxxxx/Library/Android/sdk/platform-tools

  5. save and exit

  6. Enter in the terminalsource .zshrc

  7. It should be successful at this point. You can open Android Studio (requires cold start) and enter adb in Terminal to see whether the configuration has been successful.

Guess you like

Origin blog.csdn.net/weixin_40934065/article/details/125562779