今天Eclipse无法识别手机了
使用adb shell命令报了如下错误:
* daemon not running. starting it now on port 5037 *
ADB server didn't ACK
* failed to start daemon *
其实就是5037端口被占用了。
查看占用5037端口的进程ID
命令如下:
netstat -ano | findstr "5037"
出现:
TCP 127.0.0.1:5037
0.0.0.0:0 LISTENING 5696
.....
然后根据ID将进程关闭掉即可
关闭进程有两种方式
1. 在
dos命令行中关闭
ntsd -c q -p Pid (PID为进程ID,无需双引号)
2.在任务管理器的窗口中关闭
任务管理器默认是不现实进程ID的,查看-->选择列--->选中PID
关闭掉相关进程即可
最后查看netstat -ano | findstr "5037"端口