端口占用 could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037

转自:http://www.jianshu.com/p/0016e359a1ac

daemon not running. starting it now on port 5037
error: could not install smartsocket listener: cannot bind to 127.0.0.1:5037: XXX(10048) could not read ok from ADB Server
failed to start daemon error: cannot connect to daemon
原因:
基本是因为5037端口被占用
解决:
以下适用Windows 运命行下
具体查看被占用的端口进程

netstat -aon|findstr 5037



查看进程的具体描述
tasklist /fi "PID eq 5008"

5008为上步找到pid

端口占用 could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037_第1张图片


强制退出进程
taskkill /pid 5008 /f
/f表示强制
重新启动adb就可以了
adb start-server

关闭adb 重启

adb kill-server
adb start-server

你可能感兴趣的:(移动端开发)