【问题标题】:Running AVD is giving error运行 AVD 报错
【发布时间】:2015-06-05 08:54:18
【问题描述】:

我正在运行的命令:

C:\Users\bhaishaki\AppData\Local\Android\sdk\tools\emulator.exe -netdelay none -netspeed full -avd Nexus_5_API_22_x86
emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it.
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
getGLES1ExtensionString: Could not find GLES 1.x config!
Failed to obtain GLES 1.x extensions string!
Could not initialize emulated framebuffer

【问题讨论】:

标签: android android-layout avd


【解决方案1】:

如果您使用的是 Android Studio,请启动 AVD 管理器,编辑 Nexus AVD(即单击铅笔图标),然后在出现的窗口中取消选中“使用主机 GPU”复选框。

这为我修复了错误并允许我从 Android Studio 启动模拟器。

【讨论】:

  • 在 android studio 2.1.2 中找不到这个选项
【解决方案2】:

检查这些链接:Emulator!!Emulator!!

注意:编辑模拟器 Uncheck 'Use Host GPU' option. 。仍然有任何问题让我知道

【讨论】:

    【解决方案3】:

    以下答案适用于android 2.0及以上用户

    一旦您选择“软件 - GLES 2.0”,一切都会好起来的。

    步骤:

    1)Tools -> Android -> AVD Manager 
    2)Select "Edit" ( a green pencil like icon).
    3)Select "Show Advanced Settings".
    4)In the Graphics drop list select "Software - GLES 2.0"
    5)Click finish to save and now again build the gradle.
    

    下图显示了我必须删除错误的设置。

    【讨论】:

      【解决方案4】:

      您确定下载了所选设备的api级别所需的包吗?

      我建议你打开 SDK 管理器并检查是否安装了所需的 Api 包。

      【讨论】:

        【解决方案5】:

        转到 AVD 管理器。 - 编辑您的 AVD。 - 取消选中“使用主机 GPU”选项。 - 单击完成(保存)。 - 再次启动 AVD。

        【讨论】:

          【解决方案6】:

          编辑您的 AVD,在图形上选择 Software-GLES 而不是 Auto。它对我有用。我还在高级设置选项中将 VM 堆大小更新为 384。

          【讨论】:

            猜你喜欢
            • 1970-01-01
            • 2023-04-04
            • 2013-08-01
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 2016-09-20
            • 2022-12-17
            • 2014-08-03
            相关资源
            最近更新 更多