Android教程網
  1. 首頁
  2. Android 技術
  3. Android 手機
  4. Android 系統教程
  5. Android 游戲

解決 Eclipse 無法 Run As 應用程式的 adb 連線錯誤

編輯:關於 Android 開發

當 application 無法運行時,console 通常會顯示如下錯誤:

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 'XXXX' and can be executed.

這個錯誤提示 adb 連線已中斷,需要重啟 adb 與 Eclipse。

我遇到這個問題的原因是:下載了兩個 ADT 包,而系統的環境變量所指的 adb 路徑,與當前使用的 Eclipse 所屬的 ADT 包並不在同一個目錄下,導致版本不一致、連線失敗。

解決方法很簡單:改用與環境變量對應的那個 ADT 包(即讓 adb 路徑與 Eclipse 使用的 SDK 屬於同一套),問題即可消除。

  1. 上一篇文章:
  2. 下一篇文章:
Copyright © Android教程網 All Rights Reserved