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

来源:互联网 发布:最游记漫画软件 编辑:程序博客网 时间:2024/05/16 05:44

转自: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



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

关闭adb 重启

adb kill-server
adb start-server

0 0
原创粉丝点击