ADT 连接手机运行android应用程序时报错

The connection to adb is down, and a severe error has occured.   

You must restart adb and Eclipse. Please ensure that adb is correctly located at ....

解决方法:

(1):打开CMD,进入:

>adt-bundle-windows-x86-20131030\sdk\platform-tools>adb.exe kill-server

提示:* server not running *

>adt-bundle-windows-x86-20131030\sdk\platform-tools>adb.exe start-serfver

提示:

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

此方法解决不了。

(2):查看端口号占用情况

>netstat -aon | findstr "5037"

TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       5932
TCP    127.0.0.1:5037         127.0.0.1:50462        ESTABLISHED     5932

查看任务:

>tasklist | findstr "5932"

tadb.exe                      5932 Console                    1      5,260 K

将此任务kill掉,然后重启ADT问题解决:

>taskkill /f /t /im tadb.exe

成功: 已终止 PID 5932 (属于 PID 5820 子进程)的进程。

 

posted @ 2014-01-12 14:16  yshy  阅读(718)  评论(0编辑  收藏  举报