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  ,获取如下界面

Please ensure that adb is correctly located at 最新详细方案_第1张图片

其中发现了

进程id为4136的进程占用了adb的默认端口5037,这时候就发现了问题的所在

2.打开任务管理器,点击查看,进入选择列选项界面,如下

Please ensure that adb is correctly located at 最新详细方案_第2张图片

将pid的显示勾上

3.根据对应的pid将占用端口的进程结束,然后重启eclipse

4.恭喜你,应该可以正常使用了!!



因为不能

你可能感兴趣的:(Please ensure that adb is correctly located at 最新详细方案)