ADB server didn't ACK问题解决方法

来源:互联网 发布:中国大数据领军人物 编辑:程序博客网 时间:2024/05/17 04:37

当我们通过eclipse开发Android应用时,会连接真机会使用模拟器进行仿真,有时候启动失败,会提示这样的错误。

adb server is out of date.  killing...
ADB server didn't ACK
* failed to start daemon *

[2013-10-12 09:17:18 - hisense.demo] Android Launch!
[2013-10-12 09:17:18 - hisense.demo] The connection to adb is down, and a severe error has occured.
[2013-10-12 09:17:18 - hisense.demo] You must restart adb and Eclipse.
[2013-10-12 09:17:18 - hisense.demo] Please ensure that adb is correctly located at 'D:\android-sdks\platform-tools\adb.exe' and can be executed.

方法/步骤

  1. 首先通过CMD启动adb服务。这个时候会提示启动失败。

    adb server is out of date.  killing...
    ADB server didn't ACK
    * failed to start daemon *
  2. 服务启动失败的原因有很多,但一般是端口绑定失败。我们来查看一下端口绑定信息。如图所示,真的是端口绑定出了问题。

    D:\android-sdks\platform-tools>adb nodaemon server
    cannot bind 'tcp:5037'


    D:\android-sdks\platform-tools>

  3. 我们来看看哪个服务占用了这个端口。这里面有1个进程占用了这个端口。

    D:\android-sdks\platform-tools>netstat -aon|findstr "5037"
      TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       3500
      TCP    127.0.0.1:5037         127.0.0.1:49972        ESTABLISHED     3500
      TCP    127.0.0.1:49972        127.0.0.1:5037         ESTABLISHED     3268
      TCP    192.168.1.105:50372    172.16.41.57:993       CLOSE_WAIT      2884


    D:\android-sdks\platform-tools>
  4. 我们进入任务管理器,关闭这个进程。



  5. 再次启动服务,启动成功。

    D:\android-sdks\platform-tools>adb start-server
    * daemon not running. starting it now on port 5037 *
    * daemon started successfully *


    D:\android-sdks\platform-tools>
  6. 关闭Eclipse,重启,再次连接模拟器。

    ADB server didn't ACK

原创粉丝点击