adb server is out of date. killing...

  在开发中遇到N回 adb server is out of date. killing... 这个问题,前几次都是在任务管理中找到adb.exe关掉后,再restart eclipse就可以,实在不行就重新电脑,后来自己想想这终究不是解决问题的办法,今天决定彻底的了解下根由。

C:\Users\xxxx>adb start-server  
adb server is out of date.  killing...  
ADB server didn't ACK  
* failed to start daemon *  

  

adb 不管执行 shell devices 还是logcat 都会报错,在eclipse的console中,究其源就是adb server没启动。

adb server is out of date.  killing...  

经过查找有关资料整理解决办法如下:

在cmd中

运行:C:\Users\xxxx>adb nodaemon server  
结果显示: cannot bind 'tcp:5037'  

原来adb server 端口绑定失败

 

继续查看到底是哪个端口给占用了                                                                        pid

运行: C:\Users\xxxxxx>netstat -ano | findstr "5037"
显示:   TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       11284
        TCP    127.0.0.1:5037         127.0.0.1:49422        ESTABLISHED     11284
        TCP    127.0.0.1:49422        127.0.0.1:5037         ESTABLISHED     3840

  

关闭掉进程pid=11284

 

 

运行: tskill 11284

  

 最后重行 restart eclpise 就可以了。

 

posted @ 2013-12-18 11:25  公孙 轩辕  阅读(261)  评论(0编辑  收藏  举报