方案一:
近日在MyEclipse里面运行Android的应用,总是报错误信息,Adb connection Error:An existingconnection was forcibly closed by the remotehost,主要的内容大概是如此了。然后到ADT的对应的目录下面,adb.exe文件安好,这就奇怪了。今天,上网Google了一下,发现了问题所在,是模拟器出问题了。于是乎,重启模拟服务。
方案二:
adb server is out of date. killing...
ADB server didn't ACK
* failed to start daemon *
error: unknown host service
使用adb时,若出上面的错,使用adb kill-server是没有用的,因为此时是其他进程的监听了端口,而不是adb。我用cmd+命令管理器解决:
输入netstat -ano | findstr "5037"
找到下列进程
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 4236
TCP 127.0.0.1:5037 127.0.0.1:49422 ESTABLISHED 4236
TCP 127.0.0.1:49422 127.0.0.1:5037 ESTABLISHED 3840
此时把4236这个进程结束就行了。
TASKLIST | findstr "4236"
我的是被一个叫tadb.exe的挟持了,貌似是qqmusic的进程,结束它,over
方案三:
Looks like the installed driver was in bad state. Here is what I did to make it work:
Delete the device from Device Manager.
Rescan for hardware changes.
"Slate 21" will show up with "Unknown driver" status.
Click on "Update Driver" and select /extras/google/usb_driver
Device Manager will find the driver and warn you about installing it. Select "Yes."
This time the device got installed properly.
Note that I didn't have to modify winusb.inf file or update any other driver.
Hope this helps.
http://stackoverflow.com/questions/7411295/error-adb-connection-erroran-existing-connection-was-forcibly-closed-by-the-r