您的位置:首页 > 编程语言 > Java开发

Eclipse连接真机测试 出现unknown daemon not running. starting it now on port 5037 ADB server didn't ACK

2014-10-23 19:20 471 查看
Eclipse连接手机后,在Devices视图中发现是 Unkonw,运行安卓项目输出

daemon not running. starting it now on
port 5037 ADB server didn't ACK

1、输入cmd进入dos界面,进入android-sdk-windows\platform-tools目录,执行下面命令

启动adb start-server

出现下面错误

* daemon not running. starting it now on port 5037 *

ADB server didn't ACK

* failed to start daemon *

2、执行下面命令

adb nodaemon server

出现下面错误

cannot bind 'tcp:5037'

原来adb server 端口绑定失败

3、输入下面的命令查询哪个占用了5037端口

netstat -ano | findstr "5037"

出现下面信息

TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 9712

TCP 127.0.0.1:59557 127.0.0.1:5037 SYN_SENT 2988

4、打开任务管理器将 PID为 9712(一般是杀毒软件进程,我的是腾讯管家)和2988(一般是kadb进程) 的两个进程结束掉

5、然后在dos界面在运行 一遍 adb kill-server 和adb start-server 当adb start-server输出

daemon not running. starting it now on port 5037 *

daemon started successfully *

就可以了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: