For android studio, the default adb path is:
~/Library/Android/SDK/ platform-tools
Note: the root directory indicated by "~" in the path refers to the directory of the current user, not the root directory of the whole mac system, and the default current directory of the terminal is "~".
If in doubt, you can enter the "ls" command at the terminal to compare the files listed in the file directory.
By default, the Repository folder in the user directory is hidden. You need to right-click "View Display Options" and check "Show Repository Folders" to display.
Follow the path shown in the figure to find the location of the Asian Development Bank.
Open the terminal under the mac system and enter:
& gt touch. bash_profile
& gtopen -e .bash_profile
This will pop up a ". Bash_profile "file.
After opening the file, it should be blank. Add:
Export path =${PATH}:
It represents the path of adb file in the computer. My profile is as follows:
Export path = $ {path}: ~/library/Android/SDK/platform-tools
After adding, save and close the file. At this point, adb is configured.
six
How to verify whether adb is successfully configured? It's simple. Input at the terminal.
& gt (same as AsianDevelopmentBank) Asian Development Bank
Instead of prompting "command not found", a long list of help instructions appears to prove that adb has been configured.