adb server is out of date. killing... 解决方案

忘了原文从哪来的了,过后查到补上链接

今天调试android的时候发现一个诡异的问题
 C:Usersxxxx>adb start-server 
 adb server is out of date.  killing... 
 ADB server didn't ACK 
 * failed to start daemon * 
adb 不管执行 shell devices 还是logcat 都会报错
究其源就是adb server没启动
经过分析整理如下:
 C:Usersxxxx>adb nodaemon server 
 cannot bind 'tcp:5037'
原来adb server 端口绑定失败
继续查看到底是哪个端口给占用了
 C:Usersxxxxxx>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
打开任务管理器kill掉4236 这个进程。ok
至此问题解决。

原文地址:https://www.cnblogs.com/luhouxiang/p/3450002.html