you must restart adb and eclipse的相关解决办法

1、最近运行eclipse,控制台时不时老出现这样的错误:

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:/android-sdk-windows/tools/adb.exe' and can be   executed.

反正重启adb和Eclipse是没有用的。

方法一:

之后有人说将tools和platplatform-tools的路径加到path 还有classpath里面,但是好像没有用

方法二:

adb  kill-server

adb  start-server

方法三:

直接重启电脑,感觉这个才是最管用,那天就是一下子开了好几个模拟器,之后eclipse就犯二了!

方法四:

一种情况是“豌豆荚”或“手机助手”类软件占用了adb,在任务管理器中停止“豌豆荚”以及adb后重启adb后重启eclipse

注意把任务管理器中的豌豆荚关闭了!

原文链接:http://blog.163.com/gene_lu/blog/static/640254212013102784656899/

2、更新android SDK后遇到N多的问题,其中之一即是真机调试不能运行,控制台提示如下:

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 '.../tools/adb.exe' and can be   executed.

网上查了一下,一般说是adb进程被占用,解决方案也给出了好多,但是都没能解决。

后来想起来consol报的第一个错误提示其实为如下错误消息,只不过很快就消失了没有引起注意。

DDMS files not found: ...Android-eclipseadt-bundle-windows-x86-20131030sdk oolshprof-conv.exe 

去如上目录下确认hprof-conv.exe 文件不存在,但在【...Android-eclipseadt-bundle-windows-x86-20131030sdkplatform-tools】目录下发现了,即将此文件拷贝到tools文件夹下问题解决,具体原因没有去进一步调查。

我的问题是通过这种方法解决的

原文链接:http://blog.csdn.net/gdrgn/article/details/41144607

原文地址:https://www.cnblogs.com/tjuscslirui/p/4514630.html