How do I configure the ADB command on Mac Pro?

Source: Internet
Author: User

How to add the ADB command from the Android SDK to the environment variable on Mac Pro will be explained here!

Method/Step
  1. 1

    Start the terminal, you can search for "terminal" in spotlight

  2. 2

    Enter the current user's home directory with the following command:

    CD $HOME

  3. 3

    Update the. bash_profile file (when the file exists), if the file does not exist, you can create it with the following command:

    Touch. Bash_profile

  4. 4

    Open the. bash_profile file and edit its contents, with the following command:

    Open-e. Bash_profile

  5. 5

    At this point the text editor opens a text that reads as follows:

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

    Export Path=${path}:/users/apple/library/android/sdk/tools

    Can be modified according to the installation directory of the SDK

  6. 6

    Save the file, close the. bash_profile

  7. 7

    To update the environment variables you just configured, the command is as follows:

    source. bash_profile

  8. 8

    Verify that the configuration was successful and that the command is as follows:

    ADB devices

    Link Address: http://jingyan.baidu.com/article/59703552c0f8818fc1074041.html

How do I configure the ADB command on Mac Pro?

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.