Solution to ADB connection exception in ADB startup failure in Android development

Source: Internet
Author: User

First, the situation description:

We are using eclipse development sometimes there is an ADB connection exception, sometimes the console will print out the ADB connect exception

For example, the following will appear:

    [2014-12-18 16:18:26- ] The connection to ADB was down, and a severe error had occured.    [2014-12-18 16:18:26- ] You must restart ADB and Eclipse.    [2014-12-18 16:18:26-] Please ensure the ADB is correctly located at ' E:\ADT-BUNDLE-WINDOWS-X86_64-20140624\SDK\PL Atform-tools\adb.exe ' and can be executed.

Ii. Solutions

Most of these are caused by other programs that take up 5037 of ports, and the idea is to see which program is consuming the ADB debug port and then end it.

Use the following command:

Netstat-aon|findstr "5037"

TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 18212

Tasklist|findstr "18212"

Kadb.exe 18212 Console 1 1,260 K

We can see that a program called Kadb.exe is taking over our ADB port and going into the task manager and finding it is over.

1. Close Kadb.exe

2.ADB Kill-server

3.ADB Start-server

4. Restart Eclipse

Solution to ADB connection exception in ADB startup failure in Android development

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.