adb 无法连接手机的解决方法

时间:2021-04-07 19:27:08

欢迎大家转载,为保留作者成果,转载请注明出处,http://blog.csdn.net/netluoriver,有些文件在资源中也可以下载!如果你没有积分,可以联系我!

SIP voip 测试交流群: 323827101



有时用adb在连接手机的时候会出现:

C:\Users\luoriver>adb shell
adb server is out of date.  killing...
ADB server didn't ACK
* failed to start daemon *
error:

解决方法如下:


1、首先查找占用5037端口的进程ID.

C:\Users\luoriver>netstat -ano|find "5037"
  TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       8692
  TCP    127.0.0.1:5037         127.0.0.1:54152        ESTABLISHED     8692
  TCP    127.0.0.1:54051        127.0.0.1:5037         TIME_WAIT       0
  TCP    127.0.0.1:54149        127.0.0.1:5037         TIME_WAIT       0
  TCP    127.0.0.1:54150        127.0.0.1:5037         TIME_WAIT       0
  TCP    127.0.0.1:54151        127.0.0.1:5037         TIME_WAIT       0
  TCP    127.0.0.1:54152        127.0.0.1:5037         ESTABLISHED     8692
  TCP    127.0.0.1:54175        127.0.0.1:5037         TIME_WAIT       0
  TCP    127.0.0.1:54176        127.0.0.1:5037         TIME_WAIT       0
  TCP    127.0.0.1:54177        127.0.0.1:5037         TIME_WAIT       0


2、查找进程ID的相关使用程序

C:\Users\luoriver>tasklist |find "8692"
360MobileMgr.exe              8692 Console                    1      9,332 K


3、在任务管理器中结束360MobileMgr.exe 进程。再用adb shell可正常连接手机.


C:\Users\luoriver>adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
#