2013-01-20 91 views
4

我一直在下面的http://developer.android.com/training/basics/firstapp/running-app.html發現運行Eclipse的AVD的Hello World應用程序的說明,但AVD不啓動,我得到了以下信息:Android模擬器上的Eclipse工作不

[2013-01-20 00:20:59 - MyFirstApp] ------------------------------ 
[2013-01-20 00:20:59 - MyFirstApp] Android Launch! 
[2013-01-20 00:20:59 - MyFirstApp] adb is running normally. 
[2013-01-20 00:20:59 - MyFirstApp] Performing com.example.myfirstapp.MainActivity  activity launch 
[2013-01-20 00:21:00 - MyFirstApp] Automatic Target Mode: launching new emulator with  compatible AVD 'TestAVD' 
[2013-01-20 00:21:00 - MyFirstApp] Launching a new emulator with Virtual Device 'TestAVD' 
[2013-01-20 00:21:48 - Emulator] Failed to create Context 0x3005 
[2013-01-20 00:21:48 - Emulator] emulator: WARNING: Could not initialize OpenglES emulation, using software renderer. 
[2013-01-20 00:21:48 - Emulator] Failed to allocate memory: 8 
[2013-01-20 00:21:48 - Emulator] 
[2013-01-20 00:21:48 - Emulator] This application has requested the Runtime to terminate it in an unusual way. 
[2013-01-20 00:21:48 - Emulator] Please contact the application's support team for more information. 

而且,彈出一個錯誤窗口,說ARM模擬器exe已停止工作。有什麼想法嗎?

回答

2

OP this線程都有類似的錯誤消息,

模擬器:警告:無法初始化OpenglES仿真,使用軟件渲染

希望它能幫助!

+0

嗯仍然無法正常工作。另一個線程的OP最終通過升級他的操作系統來解決它;他原來的Ubuntu版本太老了,無法運行。我使用的是Vista,所以操作系統(除了因爲Vista LOL而本身就不好)不應該成爲問題。 – nsax91

0

嘗試從命令行運行模擬器GPU選項並確保它正在工作與否。

-gpu off 

即使導致錯誤,轉到eclipse,右鍵單擊該項目,然後選擇運行我的項目作爲「Android應用程序」。模擬器應該啓動。

您也可以嘗試從AVD管理器啓用/禁用所選模擬器的GPU emulation選項。

要啓用/禁用GPU emulation

轉到AVD管理器 - >選擇Android虛擬設備 - >點擊編輯 - > 硬件選項卡 - >啓用/禁用GPU仿真。

希望它能起作用。

1

檢查兩件事情:

  • 您使用的是512MB的RAM(仿真器不能正常工作 更多)
  • 嘗試打開 '主機GPU' 關
0

我嘗試運行具有比我的顯示器設置更高分辨率的模擬器時出現此錯誤。