問題描述
我花了幾天時(shí)間嘗試啟動(dòng)任何 Android 程序.甚至Hello World"也給了我同樣的錯(cuò)誤:
I've spent days trying to launch any Android program. Even "Hello World" gives me the same error:
與 adb 的連接已斷開,出現(xiàn)嚴(yán)重錯(cuò)誤".
"The connection to adb is down, and a severe error has occurred".
我在 Windows XP 機(jī)器上運(yùn)行 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.
我已經(jīng)使用了我在網(wǎng)上可以找到的所有技巧:命令行adb kill-server",DDMSreset ADB",我在 Eclipse 之前和之后都啟動(dòng)了模擬器,并搜索了正在使用的端口由其他程序.
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.
這里發(fā)生了什么?是否有 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?
推薦答案
試試下面的步驟:
- 如果正在運(yùn)行,請(qǐng)關(guān)閉 Eclipse
- 在命令提示符下進(jìn)入 Android SDK platform-tools 目錄
- 鍵入
adb kill-server
(在發(fā)出這些命令之前應(yīng)關(guān)閉 Eclipse) - 然后輸入
adb start-server
- 啟動(dòng)ADB服務(wù)器沒有報(bào)錯(cuò),則ADB啟動(dòng)成功.
- 現(xiàn)在您可以再次啟動(dòng) Eclipse.
這種方式對(duì)我有用.
同時(shí)重啟你的手機(jī)!
這篇關(guān)于錯(cuò)誤“與 adb 的連接已關(guān)閉,出現(xiàn)嚴(yán)重錯(cuò)誤."的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!