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

Posted lytwajue

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了The connection to adb is down, and a severe error has occured相关的知识,希望对你有一定的参考价值。

相信不少人在android中都遇到了你下面不好解决的问题:

首先描写叙述症状,例如以下图

技术分享技术分享

解决方法:
方法1:先在cmd中adb kill-server,然后adb -startserver;

方法2:假设方法1无论用,那能够试试这种方法:

首先确定你的sdk文件夹是不是真的在Console输出的那个位置。假设是的话。接下来如今就要看看究竟是谁占用了port。打开命令编辑器进入你的sdk下的platform-tools文件夹输入adb start-server。


技术分享
能够看得出来,port是被占用了。


接下来须要确定被占用的port号是多少,输入命令adb nodaemon server。

技术分享
 OK,如今确定了,port5037被占用了。


那么接下来,在cmd中输入命令netstat -ano |findstr "5037"。例如以下。

技术分享
 原来是10280这个进程占用了port,那么接着查询一下是哪个进程占用了该port。

 

在cmd中输入命令tasklist /fi "pid eq 10280"。

技术分享


 OK,我们已经找到了。是tadb.exe。好了,打开任务管理器,kill这个进程吧。记住还要重新启动一下Eclipse。

方法3:方法1和2都无论用。那么查看最后一句报错中:platform-tools中是否有adb.exe,假设没有platform-tools目录,新建一个目录,而且把tools中的文件所有拷贝到platform-tools中。

















以上是关于The connection to adb is down, and a severe error has occured的主要内容,如果未能解决你的问题,请参考以下文章

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

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

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

The connection to adb is down, and a severe error has occured. Android ADB server didn't ACK *

Android 提示: The connection to adb is down, and a severe error has occured.

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