您的位置:首页 > 移动开发 > Android开发

android虚拟机adb不能启动情况汇总

2015-07-07 23:32 357 查看
在开启android虚拟机的时候,可能会遇到adb不能启动的问题。

大概有以下几下情况:

1.报错:

BUILD FAILED

D:\workspace\ganji\build.xml:144: The following error occurred while executing this line:

D:\workspace\ganji\build.xml:271: Unable to delete file D:\workspace\ganji\tmp\proguard\tmp.jar

原因与解决方法:

已经开了一个模拟器了,无法重新编译,必须关闭一个

2.报错:

The connection to adb is down, and a severe error has occured.

原因与解决方法:

在运行里,输入cmd.在DOS下进入到sdk tools文件路径下

输入adb kill-server杀死进程

然后再adb start-server重启进程

并在任务管理器中,去寻找一下有adb的程序,如酷狗音乐什么的,全部结束进程。可能是这些程序占用了abd

3.报错:

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.

解决:

方法1.cmd中adb kill-server,然后adb -startserver

方法2.方法1不管用,那么在任务管理器中杀死adb.exe,然后重启Eclipse。

方法3.方法1和2都不管用,那么查看最后一句报错中:platform-tools中是否有adb.exe(我的错误就是在相关路径下面没有platform-tools文件夹

,所以我选择新建一个文件夹,并且把tools中的文件全部复制到platform-tools中)

4.前面的方法试了还是不行的话,建议重新装一个系统,最好换个系统。(实在实在没办法的情况下才用吧,无奈t^t)

还有一个原因,别人遇到过,可以参考一下:

我们在Windows DOS窗口中输入adb shell后,会出现如下错误: adb server is out of date. killing… ADB server didn’t ACK * failed to start daemon * error: unknown host service ,出现这问题是因为你的电脑上安装了豌豆夹造成的,只需打开“任务管理器”,找到’wandoujia_helper.exe’,把这个进行终止掉就可以
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: