adb server is out of date. killing...

1:今天調試android的時候發現一個詭異的問題 html

[html]  view plain copy
  1. C:\Users\xxxx>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 都會報錯
[html]  view plain copy
  1. adb server is out of date.  killing...  
究其源就是adb server沒啓動

到stackoverflow上查了一下 通過分析整理以下: android

[html]  view plain copy
  1. C:\Users\xxxx>adb nodaemon server  
  2. cannot bind 'tcp:5037'  
原來adb server 端口綁定失敗

繼續查看究竟是哪一個端口給佔用了 shell

[html]  view plain copy
  1. C:\Users\xxxxxx>netstat -ano | findstr "5037"  
  2.   TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       4236  
  3.   TCP    127.0.0.1:5037         127.0.0.1:49422        ESTABLISHED     4236  
  4.   TCP    127.0.0.1:49422        127.0.0.1:5037         ESTABLISHED     3840  

打開任務管理器kill掉4236 這個進程。ok tcp

相關文章
相關標籤/搜索