adb server is out of date. killing问题

1. 查看原因:

D:\android-sdk-windows\platform-tools>adb nodaemon server
cannot bind 'tcp:5037'

2. 查看端口占用情况:

D:\android-sdk-windows\platform-tools>netstat -ano | findstr "5037"
  TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       4172

3. 查看所有进程,直接在任务管理器中做不到,使用tasklist命令

C:\Users\peteryfren>tasklist

映像名称                       PID 会话名              会话#       内存使用
========================= ======== ================ =========== ============
...
tadb.exe                      4172 Console                    1      5,056 K
...

杀掉PID=4172的进程

C:\Users\peteryfren>taskkill /PID 4172 /F
成功: 已终止 PID 为 4172 的进程。

再次adb shell OK了!


参考这篇blog:http://blog.csdn.net/id19870510/article/details/8489486


你可能感兴趣的:(adb server is out of date. killing问题)