Mac Configuration Android Development environment (i)

Source: Internet
Author: User

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.