经常遇到 Please ensure that adb is correctly located at ‘D:\java\sdk\platform-tools\adb.exe’ and can be executed.
遇到问题描述:
运行android程序控制台输出
[2012-07-18 16:18:26 – ] The connection to adb is down, and a severe error has occured.
[2012-07-18 16:18:26 – ] You must restart adb and Eclipse.
[2012-07-18 16:18:26 – ] Please ensure that adb is correctly located at
‘D:\java\sdk\platform-tools\adb.exe’ and can be executed.
解决问题:
第1种:确认任务管理器有adb ,就 kill掉adb 或者重启adb server
第2种:某个程序占用了adb端口。于是按此思路查找。
5037为adb默认端口 查看该端口情况如下:
netstat -aon|findstr “5037”
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 3548
发现3548占用了 5037端口,继续查看3548的task,发现是kadd.exe.如下所示
tasklist|findstr “3548”
kadb.exe 3548 Console 1 5,720 K
接下来问题就好解决了,在任务管理器kill掉kadb.exe ,运行android程序,ok .
转载请注明:隨習筆記 » Android adb.exe程序启动不起来解决方法