天天看點

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這個程序占用了端口,這個鳥程序是誰呢,想必你很想知道

五、找到元兇

在cmd中輸入指令tasklist /fi "pid eq 10280"

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

 OK,我們已經找到了,是tadb.exe,我的是騰訊電腦管家在搞怪,你的呢

剩下的不用我說了,打開你的任務管理器,kill這個程序吧

 忘了說一句,kill程序之後記得重新開機一下eclipse

繼續閱讀