android 开发时出现 Please ensure that adb is correctly located at '...\adb.exe' and can be executed

来源:互联网 发布:rio网络用语什么意思 编辑:程序博客网 时间:2024/05/17 00:02

遇到问题描述:

运行android程序控制台输出

 The connection to adb is down, and a severe error has occured.
 You must restart adb and Eclipse.
 Please ensure that adb is correctly located at 'D:\java\sdk\platform-tools\adb.exe' and can be executed.

发现adb 启动不了。之前一直都好好,所有环境应该是没问题,那应该就是有冲突或什么的了。
网上很多都说kill 掉adb 然后重启,但是我发现adb根本就没有启动。

解决方法:
1.于是查看了下adb的默认端口5037 是否被其他应用占用:
cmd
netstat -aon|findstr "5037"

TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       1292
果然被占用了
2.查看下是被哪个进程占用:
tasklist|findstr "1292"

tadb.exe                    1292 Console                 0      3,564 K

             发现被tadb.exe占用tadb.exe 是腾讯的连接安卓设备的驱动进程 果断结束掉,并删除

3.重启eclipse

发现还是不行???????

4.再次按以上步骤查看
发现5037端口又被360手机助手占用惊恐,这尼玛的。。。比土匪还土匪
果断删除

5.再次重启eclipse
终于一切恢复正常。。。。高高兴兴的coding.....

以上可能并不适合所有人,只是本人解决的一个记录,如果有什么其他解决办法还请多指教



原创粉丝点击