[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:
- CD ~
- Echo $HOME
- Touch. Bash_profile
- 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):
- Export path=${path}:/xxx/xxx/platform-tools/
Copy Code4. Save exit TextEdit, close terminal and exit, execute Source command
- 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:
- 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:
- mkdir ~/.android
- echo "0x2717" > ~/.android/adb_usb.ini
Copy CodeThen restart the ADB sever process and enter the following command:
- 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