【问题标题】:Android Emulator on Eclipse Not WorkingEclipse 上的 Android 模拟器不工作
【发布时间】:2013-01-20 05:28:20
【问题描述】:

我一直按照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 已停止工作。有什么想法吗?

【问题讨论】:

    标签: android eclipse avd


    【解决方案1】:

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

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

    希望对你有帮助!

    【讨论】:

    • 嗯还是不行。另一个线程的OP最终通过升级他的操作系统来解决它;他最初的 Ubuntu 版本太旧而无法运行。我使用的是 Vista,所以操作系统(除了本身就是 Vista 的坏处)不应该是问题。
    【解决方案2】:

    检查两件事:

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

    【讨论】:

      【解决方案3】:

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

      -gpu off
      

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

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

      启用/禁用GPU emulation

      转到 AVD 管理器 -> 选择 android 虚拟设备 -> 点击编辑 -> 硬件选项卡 -> 启用/禁用 GPU 仿真。

      希望它会起作用。

      【讨论】:

        【解决方案4】:

        我在尝试以比我的显示器设置更高的分辨率运行模拟器时遇到此错误。

        【讨论】:

          猜你喜欢
          • 2012-07-18
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2012-08-11
          • 2015-12-12
          • 2014-10-15
          相关资源
          最近更新 更多