The connection to adb is down, and a severe error has occured. 解决方法汇总和自创方法

转载请注明出处:http://write.blog.csdn.net/postedit/39249761

昨天更新了sdk的版本后先是出现了sdk要求版本和adt版本不符合的错误,然后解决了之后又出现运行android程序启动模拟器出现以下错误:

The connection to adb is down, and a severe error has occured. 
[2010-03-11 09:36:56 - HelloOPone] You must restart adb and Eclipse. 
[2010-03-11 09:36:56 - HelloOPone] Please ensure that adb is correctly located at ‘D:\OPhoneSDK_1.5 
\platform-tools\adb.exe‘ and can be executed. 

首先我把网上的方法都试了一次,发现还是不行,试过的方法如下,大家可以先尝试这些方法,然后再去尝试一下我自己发现的方法.

网上方法如下:

第一种:cmd切换到到adb所在的路径中,然后分别输入adb kill-server,然后输入adb start-server 

第二种:任务管理器中杀死adb.exe,然后重启Eclipse

第三种:检查platform-tools中是否有adb.exe,如果没有的话,选择新建一个文件夹,并且把tools中的文件全部复制到platform-tools中.

第四种:在eclipse的右上角找到一个DDMS

The connection to adb is down, and a severe error has occured.  解决方法汇总和自创方法

 

,点击进入,然后在左上角的Devices中有有一个向下的三角形,点击出现列表,

The connection to adb is down, and a severe error has occured.  解决方法汇总和自创方法

 

选择reset adb.然后重启eclipse

第五种:在环境变量的path路径中,添加进去adb所在的路径.

我自己的方法:

我尝试上面这些方法,发现都不行.然后我突然想到启动模拟器时提示窗口出现了DDMS files not found的提示(后面半句提示tools下面没有hprof-conv这个文件),于是我把platform-tools文件夹里面的hprof-conv文件复制过去tools文件夹里,发现就可以顺利启动模拟器并运行程序了.

The connection to adb is down, and a severe error has occured. 解决方法汇总和自创方法

上一篇:MySQL将某个数据库下的所有表的存储引擎修改为InnoDB类型语句


下一篇:ORACLE 9i 数据库体系结构图分享