Problem Description: After installing the Android development environment in Mac OS X, when the connection is set up, it is not possible to connect the device, supposedly, Mac OS X does not need to install the driver, and does not need the tool such as pea clip.
Problem solving: The device's USB Vender ID needs to be added to the. Android/adb_usb.ini, the devices that cannot be connected, are usually made of domestic phones. The steps are as follows:
1. Open terminal, enter: System_profiler spusbdatatype command to view information for connected USB devices
For example, I am ZTE mobile phone, last view to ZTE Equipment Vender id:0x19d2 Product id:0x2207,MX4 vid: "0x2a45"
2. Enter: VI ~/.android/adb_usb.ini command, add 0x19d2 in open Adb_usb.ini file, then save exit
Note: vi command i insert; esc:wp save exit;
3. Enter the Android development environment found, can already find the ZTE phone
In terminal, enter the ADB prompt command not found. This behavior is caused by the fact that the environment variables for Android are not configured. Therefore, you need to configure environment variables for the Android SDK in your Mac.
- Start the Mac comes with terminal terminal.
- Enter the home directory of the current user.
Enter Echo $HOME on the command line
- Create a. bash_profile file.
Command line Input touch. Bash_profile
- Open a. bash_profile file.
Command line Input open-e. Bash_profile After this command line is entered, the. bash_profile file's edit window is automatically ejected
- Enter export path=/users/Your user name/file path in the. bash_profile file/platform-tools/: $PATH
Enter path considerations in the text that opens:
- 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, in addition, if multiple paths are specified , you don't 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
- Save the file.
Simply close the. bash_profile file to automatically save what you have entered.
- Update the environment variables you just configured
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.
Then execute the ADB command
ADB kill-server
ADB start-server
The task is completed
Reference: http://blog.sina.com.cn/s/blog_540316260101ftge.html
Http://www.cnblogs.com/leehongee/p/4354803.html
Mac ADT could not find a mobile device