[Mac Environment]adb command not found

Source: Internet
Author: User

    1. Start the Mac comes with terminal terminal.
    2. Enter the home directory of the current user.
    3. Enter Echo $HOME on the command line
    4. Create a. bash_profile file.
    5. Command line Input touch. Bash_profile
    6. Open a. bash_profile file.
    7. Command line Input open-e. Bash_profile After this command line is entered, the. bash_profile file's edit window is automatically ejected
    8. Enter export path=/users/Your user name/file path in the. bash_profile file/platform-tools/: $PATH

Note: If you need to add more than one path to the path, you need to separate the words ":" (a colon in English). Because Android and adb these commands are in different folders, the format is:Path=${path}: Path 1: Path 2, plus, If you specify more than one path, you do not have to write at the end: $PATH. For example:

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

    1. Save the file.
    2. Simply close the. bash_profile file to automatically save what you have entered.
    3. Update the environment variables you just configured
    4. On the command line, enter source. Bash_profile

Verify that the configuration is successful
Enter adbif-bash:adb:command not found is present, and the ADB command parameter is interpreted. Indicates that the environment variable is configured successfully.

[Mac Environment]adb command not found

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.