运行AVD会出错

时间:2015-06-05 08:54:19

标签: android android-layout avd

命令我正在运行:

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

6 个答案:

答案 0 :(得分:8)

如果您正在使用Android Studio,请启动AVD Manager,编辑Nexus AVD(即单击铅笔图标),然后在结果窗口中取消选中" Use Host GPU"复选框。

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

答案 1 :(得分:3)

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

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

答案 2 :(得分: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.

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

答案 3 :(得分:2)

您确定下载了所选设备的api级别所需的软件包。

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

答案 4 :(得分:2)

转到AVD Manager。 - 编辑你的AVD。 - 取消选中'使用主机GPU'选项。 - 单击完成(保存)。 - 再次启动AVD。

答案 5 :(得分:2)

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