小记一下
问题:控制台下显示如下错误。
errors:
* daemon not running. starting it now *
ADB server didn't ACK
* failed to start daemon *
原因分析:
adb 服务的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
当然,想查看这个端口被什么进程占用,可通过以下指令,把真凶找出来:
C:\Users\xxxxxx>tasklist /fi "pid eq 4236"
会显示对应id的进程,然后去任务管理器中杀死或者指令kill掉。
输入“ntsd -c q -p PID”命令实现,如“ntsd -c q -p 4236”