一.ADB server didn't ACK
在配置完Android环境后,运行第一个程序时,遇到了如下错误:
ADB server didn't ACK
* failed to start daemon *
它可能的原因是端口5037被占用,需要查找占用5037(Android默认)端口的PID,在cmd中输入:
netstat -ano | findstr "5037"
输出进程:
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 9292
TCP 127.0.0.1:5037 127.0.0.1:49422 ESTABLISHED 9292
TCP 127.0.0.1:49422 127.0.0.1:5037 ESTABLISHED 3840
此时把该进程“9292”结束,代码如下:
TASKLIST | findstr "9292"