Eclipse上的Android模拟器无法运行

时间:2013-01-20 05:28:20

标签: android eclipse avd

我一直按照http://developer.android.com/training/basics/firstapp/running-app.html上的说明在Eclipse的AVD上运行Hello World应用程序,但AVD没有启动,我收到以下消息:

[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已停止工作。有什么想法吗?

4 个答案:

答案 0 :(得分:2)

this线程的OP有类似的错误消息,

  

模拟器:警告:无法使用软件渲染器初始化OpenglES仿真

希望它有所帮助!

答案 1 :(得分:1)

检查两件事:

  • 您正在使用512MB的RAM(模拟器无法正常工作 更多)
  • 尝试关闭'主机GPU'

答案 2 :(得分:0)

尝试使用GPU选项从命令行运行模拟器,并确保它正常工作。

-gpu off

即使导致错误,也请转到eclipse,右键单击项目并选择将我的项目作为“Android应用程序”运行。模拟器应该开始。

您还可以尝试从AVD管理器为所选模拟器启用/禁用GPU emulation选项。

启用/禁用GPU emulation

  

转到AVD经理 - >选择android虚拟设备 - >点击编辑 - >   硬件标签 - >启用/禁用GPU仿真。

希望它能奏效。

答案 3 :(得分:0)

尝试运行分辨率高于显示器设置的仿真器时出现此错误。