本篇文章主要介绍了"adb cannot connect to daemon",主要涉及到方面的内容,对于移动开发感兴趣的同学可以参考一下:
问题:* daemon not running. starting it now on port 5037 *error: could not install ...
问题:
* 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
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 1860
TCP 127.0.0.1:5037 127.0.0.1:50247 ESTABLISHED 1860
TCP 127.0.0.1:5037 127.0.0.1:50248 ESTABLISHED 1860
查看进程的具体描述
> tasklist /fi "PID eq 1860"
映像名称 PID 会话名 会话# 内存使用
========================= ======== ================ =========== ============
adb.exe 1860 Console 1 7,696 K
强制退出进程
> taskkill /pid 1860 /f
/f表示强制
以上就介绍了adb cannot connect to daemon,包括了方面的内容,希望对移动开发有兴趣的朋友有所帮助。
本文网址链接:http://www.codes51.com/article/detail_300207.html