How to add the ADB command from the Android SDK to the environment variable on Mac Pro will be explained here!
Method/Step
- 1
Start the terminal, you can search for "terminal" in spotlight
- 2
Enter the current user's home directory with the following command:
CD $HOME
- 3
Update the. bash_profile file (when the file exists), if the file does not exist, you can create it with the following command:
Touch. Bash_profile
- 4
Open the. bash_profile file and edit its contents, with the following command:
Open-e. Bash_profile
- 5
At this point the text editor opens a text that reads as follows:
Export Path=${path}:/users/apple/library/android/sdk/platform-tools
Export Path=${path}:/users/apple/library/android/sdk/tools
Can be modified according to the installation directory of the SDK
- 6
Save the file, close the. bash_profile
- 7
To update the environment variables you just configured, the command is as follows:
source. bash_profile
- 8
Verify that the configuration was successful and that the command is as follows:
ADB devices
Link Address: http://jingyan.baidu.com/article/59703552c0f8818fc1074041.html
How do I configure the ADB command on Mac Pro?