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

Android 模擬器(emulator-5554)常見錯誤解決辦法

編輯:關於 Android 程式設計

Android 模擬器常見錯誤解決辦法:

1. Unable to get view server version from device

在 Eclipse 中寫好 Android 應用並右鍵 Run As Android Application 時,彈出對話框提示出現問題,點擊詳情顯示空指標異常。打開 DDMS 模式,裡面提示 Unable to get view server version from device emulator-5554,此時模擬器其實是運行著的。

解決辦法:刪除工作空間中的 .metadata 資料夾。

詳細步驟:

(1) 打開 Eclipse 工作空間(位置在菜單 windows → Preferences → General → Startup and Shutdown → Workspaces 中顯示)。

(2) 關閉 Eclipse,刪除該工作空間中的 .metadata 資料夾。

(3) 點擊 goto Workspaces(最後那個向右的箭頭),會發現 Eclipse 中沒有任何專案。

(4) 導入專案:點擊 File → Import,選擇 General 中的 Existing Project into Workspace,點擊 Next。

第一行右側的 Browse 選擇 workspace 所在位置(剛刪除資料夾的那個),點擊 finish 完成導入(不要勾選 copy project into workspace)。

註:處理時再次導入專案可能出現很多錯誤,關閉後重新打開軟件就沒問題了。

2. Failed to install helloworld.apk on device 'emulator-5554': timeout

查詢國外技術網站後找到辦法:window → preferences → android → ddms → ADB connection time out(ms),默認 5000,改成 10000 即可。

希望這份整理能幫助到你。

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