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

时间:2023-03-09 16:41:42
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:         0.0.0.0:              LISTENING
TCP 127.0.0.1: 127.0.0.1: ESTABLISHED

查看任务:

>tasklist | findstr "5932"

tadb.exe                       Console                          , K

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

>taskkill /f /t /im tadb.exe

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