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

真的 findstr ole pla a10 tool fcm ott art

相信不少人在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