在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 *
本文详细介绍了如何解决在Eclipse中使用ADB进行模拟器调试时遇到的ADB端口被金山安全卫士占用导致的连接失败问题。通过查找并终止占用端口的进程,重新启动ADB服务,成功解决了该问题。
3689

被折叠的 条评论
为什么被折叠?



