MAC configuration ADB environment variables
After the Android environment is built, you need to configure the Android environment variables, which is helpful for debugging later.
Let me take a look at the configuration steps in the MAC environment:
1. Create a file in your local directory (home directory). Bash_profile
2. Write the following in the file:
Exportandroid_home=/users/storm/< span class= "n" >android_tools/adt-bundle -mac-x86_64- 20130522/sdkexport path= $PATH : $ANDROID _home/tools export path= $PATH : $ANDROID _home/platform-tools
Where:/USERS/STORM/ANDROID_TOOLS/ADT-BUNDLE-MAC-X86_64-20130522/SDK is not fixed, it points to the directory of the Android SDK
3. Execute the following command: source. bash_profile
4. Verify: Enter the ADB carriage return. If command not found is not displayed, the command is valid and the environment is set to complete.
Mac Configuration Android Development environment (i)