問題描述
我花了幾天時間嘗試啟動任何 Android 程序.甚至Hello World"也給了我同樣的錯誤:
I've spent days trying to launch any Android program. Even "Hello World" gives me the same error:
與 adb 的連接已斷開,出現嚴重錯誤".
"The connection to adb is down, and a severe error has occurred".
我在 Windows XP 機器上運行 Eclipse v3.5 (Galileo)、Google API 2.2.8.
I'm running Eclipse v3.5 (Galileo), Google APIs 2.2.8, on a Windows XP machine.
我已經使用了我在網上可以找到的所有技巧:命令行adb kill-server",DDMSreset ADB",我在 Eclipse 之前和之后都啟動了模擬器,并搜索了正在使用的端口由其他程序.
I've used all the tricks I can find on the web: the command line "adb kill-server", the DDMS "reset ADB", I started the emulator both before and after Eclipse, and searched for ports being used by other programs.
這里發生了什么?是否有 Eclipse、Java、ADB、模擬器和其他任何可用版本的神奇組合?
What is going on here? Is there a magic combination of versions of Eclipse, Java, ADB, emulator, and whatever else that works?
推薦答案
試試下面的步驟:
- 如果正在運行,請關閉 Eclipse
- 在命令提示符下進入 Android SDK platform-tools 目錄
- 鍵入
adb kill-server
(在發出這些命令之前應關閉 Eclipse) - 然后輸入
adb start-server
- 啟動ADB服務器沒有報錯,則ADB啟動成功.
- 現在您可以再次啟動 Eclipse.
這種方式對我有用.
同時重啟你的手機!
這篇關于錯誤“與 adb 的連接已關閉,出現嚴重錯誤."的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!