android中The connection to adb is down解决方案

来源:互联网 发布:ubuntu进入root文件夹 编辑:程序博客网 时间:2024/05/17 22:38

最近运行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:\...\adb.exe' and can be executed. 

在参考了各种解决方案后总结如下:

1、cmd中adb kill-server,然后adb start-server
2、方法1不管用的话,关闭eclipse,在任务管理器中终止adb.exe进程,重新运行程序
3、方法1和2都不管用,那么查看最后一句报错的路径中是否有adb.exe(这是一个很低级错误奥!)


附:有的时候豌豆荚类似的软件也会导致该问题的产生因为它占用了adbserver的端口,如果上述方法不凑效,那么把豌豆荚关了试试

原创粉丝点击