About ADB connection error: EOF remote host forced to close an existing connection. Cause

Source: Internet
Author: User

After accessing Android, I have encountered the following errors more than once:

 

The following errors are repeatedly displayed on the ddms console of myeclipse:

 

[13:16:15-devicemonitor] ADB connection error: the remote host forces an existing connection to be closed.
[13:16:15-devicemonitor] ADB refused request:
[13:16:15-devicemonitor] ADB refused request:

 

Sometimes, this type of error occurs inexplicably.

 

I searched the internet for half a day and found that the most effective method is to restart myeclipse.

 

A netizen said he could kill adb.exe and restart the Service (completed in cmd)

But I couldn't do it during the test.

 

[2010-01-03 23:09:51 - DeviceMonitor]Adb connection Error:EOF[2010-01-03 23:09:51 - DeviceMonitor]Connection attempts: 1
[2010-01-03 23:09:51 - DeviceMonitor]Connection attempts: 2。。。。
So now I am using the method of restarting myeclipse.
If you have a better method, please leave a message.
————————————————————————————————————————————————————
Now let's explain the cause of the problem.

Ddms uses a long-lived connection toadbServer Running locally to get info about connected devices/emulators etc. The error message you posted generally just means that the connectionadbHas been lost.

Because you ran the reset command, you essential just killed and restartedadbProcess, so eclipse showed that harmless warning for a moment.

You can see this yourself by killingadbProcess manually. eclipse will showConnection attempts: nFor about 10 attempts before giving up.

Ddms keeps sending connections like ADB server for a long time to obtain information about simulators or connected devices. This error indicates that the connection has been lost.

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.