標籤:
遇到了幾次這個問題:The connection to adb is down, and a severe error has occured.
You must restart adb and Eclipse.Please ensure that adb is correctly located at ‘E:\setups\android\android-2.1_r01-windows\tools\adb.exe‘ and can be executed.
通過尋找和實踐,我總結了以下一些方法。
1、在Eclipse中選擇菜單“help->Check for update”,選擇更新ADT。 按上面操作完成後,重啟Eclipse!
2、在cmd中進入adb的根目錄,鍵入adb kill-server,然後鍵入adb -startserver,再重啟Eclipse。
3、在工作管理員中殺死adb.exe進程,然後重啟Eclipse。如果此時無法殺死adb.exe,則檢查豌豆莢是否在運行,關閉豌豆莢後重試。
4、超看在你安裝的SDK路徑裡面platform-tools檔案夾中是否有adb.exe,如果沒有則建立一個檔案夾platform-tools,並且把tools中的檔案全部複製到platform-tools中。
5、安裝完手機的驅動後,關閉腕豆夾,重啟eclipse。腕豆夾等類似的程式與eclipse一般不要同時開啟!還可在任務管理其中關掉豌豆莢的進程。
6、模擬器有時候很不穩定,有時候要重新全部配置一遍開發環境,或者你刪除模擬器重建立一個新的模擬器。
7、可能是預設連接埠被佔用,在cmd中鍵入netstat查看,關掉有衝突的連接埠程式,或者設定新的連接埠。
8、將platform-tools目錄和tools目錄加到Path環境變數中。
9、將Eclipse進入DDMS模式,重啟ADB 和Eclipse。
10、開啟SDK,先下載API和android SDK Tools 和 android SDK platform-tools再去配置Eclipse。
11、開關一下 usb調試。
12、重啟電腦。
You must restart adb and Eclipse解決辦法