To fix this error, you can follow these steps:
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
Install the Android SDK Platform Tools. You can download it from the Android Developer website: https://developer.android.com/studio/re…. 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
.
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
.
Reload your .zshrc file by typing source ~/.zshrc
in your terminal.
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.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-06-11 10:42:11 +0000
Seen: 21 times
Last updated: Jun 11 '23
Why isn't the CSS background image being displayed?
How can I install Beegfs on Ubuntu 22.04?
How can a .zip file from GitHub be loaded into Google Colab?
What is the process of using the Multmerge() function in r to combine files in a directory?
In Mac, what is the method to increase the privileges of an executable through setuid?
What can be done to resolve the issue with the Untracked working tree file named '._.git'?