adb shell时出现以下信息:
error: cannot connect to daemon
ADB SERVER的端口被占用
1、
执行下面命令:
adb nodaemon server 会出现
cannotbind 'tcp:5037'
2、输入下面的命令:
netstat -ano | findstr"5037"
可以查询什么占用了5037端口,再通过
taskkill/f /pid xxxx
把占用5037端口的进程给Kill掉就好,在运行一次
netstat-ano | findstr "5037"
此方法已经通过使用可以成功解决问题。