adb server is out of date. killing...

adb server is out of date. killing...

1:调试android的时候发现一个的问题

 

1 C:Usersxxxx>adb start-server  

2 adb server is out of date.  killing...  

3 ADB server didn't ACK  

4 * failed to start daemon *  


adb 不管执行 shell devices 还是logcat 都会报错

5 adb server is out of date.  killing...  

究其源就是adb server没启动

stackoverflow上查了一下 经过分析整理如下:

 

6 C:Usersxxxx>adb nodaemon server  

7 cannot bind 'tcp:5037'  

原来adb server 端口绑定失败

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

 

8 C:Usersxxxxxx>netstat -ano | findstr "5037"  

9   TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       4236  

10   TCP    127.0.0.1:5037         127.0.0.1:49422        ESTABLISHED     4236  

11   TCP    127.0.0.1:49422        127.0.0.1:5037         ESTABLISHED     3840  

打开任务管理器kill4236 这个进程。Ok

至此问题解决了

原文地址:https://www.cnblogs.com/fly-fish/p/3831702.html