由於 qq 自做多情的搞了個 androidassist
1:今天調試android的時候發現一個詭異的問題 html
- 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...
究其源就是adb server沒啓動
到stackoverflow上查了一下 通過分析整理以下: android
- C:\Users\xxxx>adb nodaemon server
- cannot bind 'tcp:5037'
原來adb server 端口綁定失敗
繼續查看究竟是哪一個端口給佔用了 shell
Dos command: netstat -ano | find /i "5037" tcp
ntsd -c q -p PID
- 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 spa