Mac configuration android ADB environment variable

Source: Internet
Author: User

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

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.