您的位置:首页 > 其它

Please ensure that adb is correctly located at 最新详细方案

2016-04-29 17:32 393 查看
运行Android程序控制台输出

[2016-04-29 17:19:46 - BookExample14_1_2] ------------------------------

[2016-04-29 17:19:46 - BookExample14_1_2] Android Launch!

[2016-04-29 17:19:46 - BookExample14_1_2] The connection to adb is down, and a severe error has occured.

[2016-04-29 17:19:46 - BookExample14_1_2] You must restart adb and Eclipse.

[2016-04-29 17:19:46 - BookExample14_1_2] Please ensure that adb is correctly located at 'F:\AndroidSdks\platform-tools\adb.exe' and can be executed.

解决步骤:

1.打开cmd界面,输入命令 netstat -ano  ,获取如下界面



其中

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

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



将pid的显示勾上

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

4.应该可以正常使用了!!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: