android异常之都是deamon惹的祸The connection to adb is down, and a severe error has occured.

来源:互联网 发布:sql语句建立table 编辑:程序博客网 时间:2024/05/18 01:17
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 'F:\android-sdk\platform-tools\adb.exe' and can be executed.


1.   首选确保你的platform-tools下有adb.exe,没有从网上下载一个与adt配套的platform-tools版本。

2.   假如有,把platform-tools假如到path下,在命令行下执行adb kill-server,然后adb start-server。

3.   执行adb get-state

若结果为

C:\Users\Administrator>adb get-state
adb server is out of date.  killing...
ADB server didn't ACK
* failed to start daemon *
error: unknown host service

则仍然无法执行。

4.   根本原因: 大概是豌豆荚或者91助手的deamon害的。

      我在安装豌豆荚之前没有这个问题,安装之后报这个异常。

      解决办法:  启动任务管理器,kill掉deamon进程,然后执行第2步。

5.  假如得到此结果,则问题解决。

  C:\Users\Administrator>adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *


原创粉丝点击