Teach you to configure ADB environment variables on your Mac!! Attach the ADB's inability to identify M2 solutions

Source: Internet
Author: User

[Experience tips] teach you to configure ADB environment variables on your Mac!! Attach the ADB's inability to identify M2 solutionslandlord table in 2012-11-13 15:47:26
recently small series suddenly changed the Mac to do the main machine, as a habit in Windows using the ADB brush and load-loading software of the cock wire, suddenly can't use the ADB is simply the pain. Fortunately after the mother's guidance, I successfully configured the environment variables.

The following is a brief talk about the specific steps, in which I was easier for everyone to understand, streamlined a few insignificant steps, the tutorial is limited to configure the use of the ADB command to brush or do some simple operation of the user ~
------------------------
give me the accessories first.
platform-tools.zip (1.08 MB, download count: 821)
here are the specific steps to be done:
1, download the attachment and unzip, and then put the folder where you want to put it, remember the path, and the path does not have Chinese characters exist.
2. Open the terminal and enter the following command in turn:
  1. CD ~
  2. Echo $HOME
  3. Touch. Bash_profile
  4. Open-e. Bash_profile
Copy Code3, this time will open a blank document in TextEdit, add the following command line (/xxx/xxx/platform-tools/for you to place the file path):
    1. Export path=${path}:/xxx/xxx/platform-tools/
Copy Code4. Save exit TextEdit, close terminal and exit, execute Source command
    1. source. bash_profile
Copy CodeAfter a few steps above, we've configured the environment variables for both ADB and fastboot, so let's test it, connect your phone first, and make sure the phone turns on USB debugging. In Terminal input:
    1. ADB devices
Copy CodeEnter, if the ID of your phone is returned, the configuration is successful (Android4.2 above will require verification on the phone side)!

Q&a
Q: I amXiaomi Phone, follow the steps, why not return the device ID when I finally entered the ADB devices?
A: Make sure that your environment variable is configured successfully, check that the ADB version is not 1.0.31, and if it is below that version number, you will need to manually add the device ID number.
Under Linux and Mac, enter the following command in the terminal:
    1. mkdir ~/.android
    2. echo "0x2717" > ~/.android/adb_usb.ini
Copy CodeThen restart the ADB sever process and enter the following command:
    1. ADB kill-server
Copy CodeIn this way, the ADB can be identified.

Teach you to configure ADB environment variables on your Mac!! Attach the ADB's inability to identify M2 solutions

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.