Eclipse adb error: ADB connection error remote host forced to close an existing connection

Source: Internet
Author: User
Tags reset

This question is a long story, is a lot of stories, in a month black night, under the direction of the leadership, the individual in the company's development of a computer for a, then feel very depressed, with a handy computer suddenly changed, opened a new computer, found already configured the JDK environment, installed good eclipse, suddenly feel good happiness , eliminating unnecessary trouble, so import project projects, into the project development. It was a pleasant thing, but suddenly eclipse started to freak out, eclipse ADB error: ADB connection error The remote host forced the shutdown of an existing connection (recurring) directly causing the program to fail to run on the test machine. Because the APK has not been installed and re-reset the ADB, so helpless to start Google, Baidu, finally summarized as follows:



A: The first question, maybe your phone does not turn on the USB debugging, open---and then connect again, the USB cable disconnected reconnect, this is also a case of it

Two: You installed the pea clip software, such as ADB conflict, the most obvious symptom is that when you open the Task Manager, you can see multiple ADB programs, it is recommended to directly end all ADB processes, close eclipse, and then open the command line, input adb kill-service, End ADB and then restart ADB start-service, then open eclipse to see if the problem still exists

Three: Relatively simple operation, open Eclipse DDMS, click Reset adb, in fact, equivalent to reset ADB, the following steps: Click Windows--show view--other--devices

And then reset it.

Four: There is a situation that I met, ADB has been disconnected and reconnect, debug does not work properly, even Logcat day interface can not be switched, the test program is very tangled, verify that all of the above methods are not, finally depressed matchless, then suddenly brainwave, if the problem of ADB, So if I use the normal Adb.exe file to replace the wrong file, it is not OK. Then found the ADB path under the Adb.exe file, will not have the wrong adb file replaced the existing, the problem has finally been resolved, no longer have such a problem. So, if you have the same distress, use this method to try it, if you have a normal version of ADB, you can replace yourself if not, try mine.



http://download.csdn.net/download/wangyetongsss/9578190 to replace these four files after downloading.

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.