问题描述:运行android程序控制台输出:
[2013-07-23 17:28:06 - ] The connection to adb is down, and a severe error has occured.
[2013-07-23 17:28:06 - ] You must restart adb and Eclipse.
[2013-07-23 17:28:06 - ] Please ensure that adb is correctly located at 'D:\Program Files\Android\android-sdk\platform-tools\adb.exe' and can be executed.
解决方法:
查找资料得知,5037为adb默认端口,所以查看该端口情况如下:
netstat -aon|findstr "5037" TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING
11248发现7852占用了 5037端口,继续查看7852的进程,发现是tadb .如下所示
tasklist|findstr "7285" tadb.exe 11248 Console 1 5,236 K
接下来问题就好解决了,在任务管理器杀掉tadb.exe ,重启adb,ok,问题解决 。