Set Android ADB environment variables under MAC

Source: Internet
Author: User

1. Locate the ADB local path

ADB put in Platform-tools

My path is (/users/android-sdk-macosx/platform-tools)

2. Open the terminal and go to the SDK folder

Touch. Bash_profile

Open-e. Bash_profile

Create a new. bash_profile file, and then open and edit it. If it is opened for the first time, it should be a blank document, if it has been edited, added after the original content;

3. Add the path to ADB in the. bash_profile file

Export Path=${path}:/users/android-sdk-macosx/platform-tools:/users/android-sdk-macosx/tools

After saving, turn off the file.

4. Terminal input command source. bash_profile
5. Terminal Input Command adb point enter, if command NotFound is not displayed, the environment variable setting is complete.

Set Android ADB environment variables under MAC

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.