adb server is out of date. killing..

 

adb server is out of date. killing...

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

[html] view plaincopy
  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 plaincopy
  1. adb server is out of date.  killing...  
究其源就是adb server沒啓動

到stackoverflow上查了一下 經過分析整理如下:

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

繼續查看到底是哪個端口給佔用了

[html] view plaincopy
  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

假如我們需要確定誰佔用了我們的 80端口

1、Windows平臺
在windows命令行窗口下執行:

C:\>netstat -aon|findstr"4236 

TCP 127.0.0.1:9050 0.0.0.0:0 LISTENING 3046


看到了嗎,端口被進程號爲4236 的進程佔用,繼續執行下面命令:

C:\>tasklist|findstr"4236 

kugou7.exe 4236 Console 0 16,064 K

很清楚吧,kugou7佔用了你的端口



至此問題解決了





發佈了24 篇原創文章 · 獲贊 9 · 訪問量 15萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章