current position:Home>macos installs and uses adb toolbox, cannot find adb (zsh: command not found: adb)

macos installs and uses adb toolbox, cannot find adb (zsh: command not found: adb)

2023-01-25 11:29:45Three_ST

1. Install Android studio

https://developer.android.google.cn/studio/features/
  • Android studio has its own adb tool, but it cannot be called directly on the command line
  • The following appears
[email protected] site-packages % adb deviceszsh: command not found: adb
  • Solution
    • Add address export of adb toolbox in .bash_profile
export ANDROID_HOME=/Users/mac/Library/Android/sdkexport PATH=${PATH}:${ANDROID_HOME}/platform-toolsexport PATH=${PATH}:${ANDROID_HOME}/tools

2. Install adb toolbox

https://developer.android.com/studio/releases/platform-tools

Similarly, after downloading, you need to put it in a certain directory, and then export it to .bash_profile

  • The above content needs to be online scientifically

copyright notice
author[Three_ST],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2023/025/202301251124555737.html

Random recommended