- C:\Users\xxxx>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 is out of date. killing...
到stackoverflow上查了一下 經過分析整理如下:
- C:\Users\xxxx>adb nodaemon server
- cannot bind 'tcp:5037'
繼續查看到底是哪個端口給佔用了
- C:\Users\xxxxxx>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
假如我們需要確定誰佔用了我們的 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佔用了你的端口
至此問題解決了