Android Studio on MAC cannot connect, identify ADB

Source: Internet
Author: User

Reference Source:

Http://www.cnblogs.com/leehongee/p/4354803.html

Http://jingyan.baidu.com/article/e8cdb32b396dec37052bad25.html

I used the MX5, the plugged-in computer was not recognized by Android Studio.

At this time do two aspects of operation. Change debug information on your phone on the one hand

Select "Developer Tools" in accessibility, check "USB debugging", "Allow impersonation location"

Next, change the Mac computer's

The General Android Connection Mac is very convenient without the installation of drivers can be, but do not know why the special circumstances of some Android phones (Xiaomi 2, Huawei, etc.) is not connected, down to say how special circumstances to connect.

There are 2 things you can do with a USB connection to your Android phone:

1. System reports on this computer--more information--Overview->usb-> the device--> Vendor ID (Vendor ID) you are connecting to

2. Open Terminal, enter: System_profiler spusbdatatype command to view information for connected USB devices

Through the above two methods to get connected to the phone USB device information, such as vid how MX5 vid: "0x2a45"

Open terminal and enter the following command: mkdir ~/.android
Enter the echo "0x2a45" > ~/.android/adb_usb.ini again to add the MX5 vid information to the Adb_usb.ini file.

Then restart the ADB sever process and enter the following command: ADB kill-server, restart the ADB service.

Encountered: ADB prompt command not found issue

Because the ADB configuration information is incorrect, you need to put the path information in the ~/.bash_profile file.

Open this file first

Enter in the terminal:

Open ~/.bash_profile

Then enter the following path in the open folder, replacing it with your path

Export path=/users/***/sdk/platform-tools/: $PATH

Restart terminal after saving

$ adb kill-server
$ adb start-server
* Daemon not running. Starting it now on Port 5037 *
* Daemon started successfully *
$ ADB devices
List of devices attached
750ACL5H68HC Device

Another point of note, I have a mobile version of Android in Android SDK manager with sdk,5.0.1 version

Android Studio on Mac cannot connect, recognize ADB

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.