"Resolved" "MAC" running adb prompt command not found, need to configure ADB environment

Source: Internet
Author: User

Issue: Run adb prompt command not found


1. Download and install: ANDROID-SDK-MACOSX

Download path: http://down.tech.sina.com.cn/page/45703.html, download version for Mac 24.4.1

2. Open Terminal Terminal

3. Create the. bash_profile file and enter the command: Touch. Bash_profile . If you have already created it, you do not need to create it again. Skip this step directly to perform 4

4. Open the. bash_profile file, command-line input open-e. bash_profile After this command line is entered, the. bash_profile file is automatically ejected from the edit window

5. Edit the. bash_profile file with the following content:

Export path= $PATH:/usr/local/bin
Export ANDROID_HOME=/USERS/ADMINISTRATOR/ANDROID-SDK-MACOSX //This step remembers the ANDROID-SDK-MACOSX path that you stored yourself

Export path= $PATH: $ANDROID _home/platform-tools

6. Save and close the. bash_profile file

7. Update the configured environment variables:, Enter and execute the command source. Bash_profile

8, run the ADB can be, the following for the successful display.

"Resolved" "MAC" running adb prompt command not found, need to configure ADB environment

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.