Please ensure that adb is correctly located at 。。。。。。。。。。。。
遇到问题描述:
运行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.
解决问题:
百度google大家多说的是任务管理器 kill掉adb 或者重启adb server,但我任务管理器就没有adb ,猜测是某个程序占用了adb端口。于是按此思路查找。
解决步骤:
1.打开cmd界面,输入命令 netstat -ano ,获取如下界面
将pid的显示勾上
3.根据对应的pid将占用端口的进程结束,然后重启eclipse
4.恭喜你,应该可以正常使用了!!