链接手机收到下面的错误
C:\Users\Administrator>adb devices
List of devices attachedadb server version (32) doesn't match this client (36); killing...
error: unknown host service
error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: 通常每个套接字地址(协议/网络地址/端口)只允许使用一次
could not read ok from ADB Server
* failed to start daemon *
error: cannot connect to daemon
问题的原因是 error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: 通常每个套接字地址(协议/网络地址/端口)只允许使用一次
5037 端口被占用
被谁占用了呢?
cmd 在命令行输入
netstat -ano|findstr 5037
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 3392
被 PID = 3392 的程序占用
PID=3392的程序是谁呢?
打开任务管理器
杀之
taskkill /pid 3392 /f
错误: 无法终止 PID 为 3392 的进程。
原因: 拒绝访问。
唉,
卸了吧