`
xuanzhui
  • 浏览: 202946 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

adb cannot connect to daemon

adb 
阅读更多

问题:

* 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 shell,pc daemon和手机daemon三者之间的数据交互流程

    在adb shell的实现中,`adb shell`命令实际上是启动了一个本地的shell进程,这个进程通过`adb_connect("shell:")`函数与PC daemon建立一个新的socket连接。这个连接的目标是发送“shell:”字符串,指示PC daemon启动...

    一键解决adb端口被占用 5037端口错误

    一键解决adb端口被占用 一键解决"* daemon not running. starting it now on port 5037 * * daemon started successfully * ...error: cannot connect to daemon"问题 一键解决adb devices时 adb程序闪退问题。

    adb进程被占用的问题

    error: cannot connect to daemon: Connection refused ``` 这些错误通常表明`adb`服务未能正常运行,或者其进程被其他应用程序占用。 ##### 原因分析 1. **端口冲突**:`adb`默认使用5037端口进行监听,如果该...

    platform-tools_r28.0.1-windows

    platform-tools_r28.0.1-windows, 解决:运行adb devices命令的时候出错了: adb server version (31) doesn't match this client (40); killing... ...error: cannot connect to daemon 

Global site tag (gtag.js) - Google Analytics