Mac ADT could not find a mobile device

Source: Internet
Author: User

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.
    1. Start the Mac comes with terminal terminal.
    2. Enter the home directory of the current user.
      Enter Echo $HOME on the command line
    3. Create a. bash_profile file.
      Command line Input touch. Bash_profile
    4. 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
    5. 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:

  1. 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
  2. Save the file.
    Simply close the. bash_profile file to automatically save what you have entered.
  3. Update the environment variables you just configured
    On the command line, enter source. Bash_profile
  4. 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

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.