1. 程式人生 > >The connection to adb is down, and a severe error has occured.問題解決

The connection to adb is down, and a severe error has occured.問題解決

看到這篇文章,成功的解決了我的問題。文章的原文地址是 http://blog.csdn.net/h7870181/article/details/9168321

再次我所以到的問題,還有一點不同。當我 重新開啟adb時,提示我AdbWinApi.dll丟失,然後找到了 http://www.jb51.net/dll/AdbWinApi.dll.html#down 解決了這個問題。希望遇到同樣問題的朋友可以成功解決。

下面是文章原文

遇到問題描述:

執行android程式控制臺輸出

[2013-06-25 11:10:32 - MyWellnessTracker] The connection to adb is down, and a severe error has occured.

[2013-06-25 11:10:32 - MyWellnessTracker] You must restart adb and Eclipse.
[2013-06-25 11:10:32 - MyWellnessTracker] Please ensure that adb is correctly located at 'E:\SDK\platform-tools\adb.exe' and can be executed.

有很多種情況,所以也有很多解決方法:

1、工作管理員 kill掉adb 或者重啟adb server

2、檢視工作管理員沒有adb,猜測是某個程式佔用了adb埠

5037為adb預設埠 檢視該埠情況如下:

檢視:cmd ——netstat -aon|findstr "5037"

 TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       5408
 TCP    127.0.0.1:5037         127.0.0.1:49542        ESTABLISHED     5408

發現5408佔用了 5037埠,繼續檢視5408的task:

檢視: tasklist|findstr "5408"

tadb.exe                      5408 Console                    1      2,980 K

發現是tadb.exe佔用,直接在工作管理員裡面kill掉或

taskkill /f /im tadb.exe

Tip:1)、tasklist 可以找到工作管理員所有程序

          2)、taskkilll /f /im 程式名1.exe /f /im 程式名2.exe .... 可以kill掉多個程式

3、重新開啟adb

adb kill-server 
adb start-server