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模拟器端口被占用)

 

二、出现问题了,首先确定你的sdk目录是不是真的在Console输出的那个位置,如果是的话。接下来现在就要看看到底是谁占用了端口。打开命令编辑器进入你的sdk下的platform-tools文件夹输入adb start-serevr


The connection to adb is down, and a severe error has occured(Android模拟器端口被占用)
 恭喜,说明你的端口被占用了

 

三、接下来需要确定被占用的端口号是多少,输入命令adb nodaemon server

The connection to adb is down, and a severe error has occured(Android模拟器端口被占用)
 OK,现在确定了,端口5037被占用了,那就要找到究竟是谁敢占用5037端口。不错,你已经想到了,豌豆荚、腾讯电脑管家。。。。。。慢着,咱还是确定一下吧,免得冤枉好人

 

四、在cmd中输入命令netstat -ano |findstr "5037"


The connection to adb is down, and a severe error has occured(Android模拟器端口被占用)
 原来是10280这个进程占用了端口,这个鸟进程是谁呢,想必你很想知道

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模拟器端口被占用)

  OK,我们已经找到了,是tadb.exe,我的是腾讯电脑管家在搞怪,你的呢

剩下的不用我说了,打开你的任务管理器,kill这个进程吧
 忘了说一句,kill进程之后记得重启一下eclipse

The connection to adb is down, and a severe error has occured(Android模拟器端口被占用),布布扣,bubuko.com

The connection to adb is down, and a severe error has occured(Android模拟器端口被占用)

上一篇:(Android review)handler的基本使用


下一篇:Android图形库Skia(一)-基本测试生成PNG图片