Eclipse cannot debug a phone's workaround

Source: Internet
Author: User

First, the scene

We sometimes want to use the phone to debug Android programs, but after connecting the phone to the computer, but not the mobile phone device, can not be used to debug the phone.

Second, the reason

There are generally two reasons: (1) adb problem; (2) The computer does not have a mobile phone driver installed.

Third, the solution

(1) Close eclipse. Then, under the Eclipse directory under the Platform-tools folder (that is, the ADB program is located in the folder), shift+ right-click, with administrator privileges to open cmd;

(2) in cmd, enter: ADB kill-server;

(3) Input: adb start-server; enter. This completes the restart of the ADB.

(4) Input: ADB devices, enter to see if there is your mobile device information, if not yet, it is not the issue of ADB. Is the reason why the computer does not have a phone driver installed.

(5) Install mobile phone driver, whether it is to use the mobile phone with the driver to install (some mobile phone comes with the driver, some do not own), or the Internet to search their own brand of mobile phone driver, in short, the driver installed on it.

After the driver is installed, in Device Manager, you will see the ADB information as shown.

(6) in cmd, input adb devices can see your mobile phone information, you can also use Eclipse to debug the phone.

Eclipse cannot debug a phone's workaround

Related Article

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.