Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To fix this error, you can follow these steps:

  1. Check if adb is installed on your Mac by typing which adb in your terminal. If it is installed, the terminal will display the path to the adb executable file. If not, move on to

  2. Install the Android SDK Platform Tools. You can download it from the Android Developer website: https://developer.android.com/studio/releases/platform-tools. Once downloaded, extract the files from the zip folder and move them to a folder of your choice, such as /Users/<your username>/android-sdk/platform-tools.

  3. Add the path to the adb executable file to your PATH environment variable. To do this, open your terminal and type nano ~/.zshrc to open the .zshrc file. Add the following line to the file: export PATH=/Users/<your username>/android-sdk/platform-tools:$PATH. Then save and exit the file by pressing ctrl + x, then y, and then enter.

  4. Reload your .zshrc file by typing source ~/.zshrc in your terminal.

  5. Check if adb is now installed by typing which adb again in your terminal. The terminal should now display the correct path to the adb executable file.

If you still encounter the same error after following these steps, try restarting your terminal and/or your Mac.