在Eclipse中进行模拟器调试出现如下错误:
The connection to adb is down, and a severe error has occured
关闭再重启adb还不行
C:\Users\xxxx>adb start-server
adb server is out of date. killing...
ADB server didn't ACK
* failed to start daemon *
解决办法:
1.找到端口号,一般都为‘5037’
C:\Users\xxxx>adb nodaemon server
cannot bind 'tcp:5037'
“5037”端口一般在装有“金山安全卫士”为手机充电的时候占用!
C:\XXX>netstat -ano | findstr "5037"
TCP 127.0.0.1:4522 127.0.0.1:5037 ESTABLISHED 4844
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 2312
TCP 127.0.0.1:5037 127.0.0.1:4522 ESTABLISHED 2312
2.根据端口号杀死相应进程即可 本人的进程ID是2312
C:\XXX>ntsd -c q -p 2312
3.启动adb即可
F:\XXX>adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *