MAC is integrated with excellent graphics, and Linux almost the same as the perfect command line, almost the current development of the necessary artifact, many Android developers have started to use the Mac to develop, then how to configure the ADB environment variables?
1. Make sure you have the SDK on your Mac, as for the SDK download, as mentioned in the previous blog. 2. Open the terminal and enter the following command
cd ~echo$HOME
To enter your user root directory, also determine what your home directory is
3. Open or create a bash_profile file
.bash_profile
4. Add the following statement to the file created in VI
PATH=${PATH}:<1>/<2>/tool:<1>/<2>/platform-tools/
Here is the location to determine the two directories, one is the tool and the other is the platform-tools. The previous two placeholders are your $home directory (mine is/users/lemondoor), and your SDK's path (mine is/library/android/sdk/).
5. Save and exit
VI We should all use, this will not say.
6. Then enter the following command
source ~/.bash_peofile
Let the configuration file take effect.
7. Test if the configuration is successful
shell
Not configured successfully will prompt, command not found
Common not Found
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Mac configuration android ADB environment variable