运行Android应用程序时出错-无法初始化OpenglES仿真,请使用'-gpu off'禁用它

我是android编程的新手。我是指Google开发人员网站来学习android。在运行应用程序UI时,出现了这些错误。


 H:\SDK\tools\emulator.exe -avd Nexus_5_API_21_x86 -netspeed full -netdelay none

 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 studio。


犯罪嫌疑人X
浏览 1037回答 3
3回答

四季花海

我最近遇到了同样的问题,出现此问题的原因是AVD尝试使用系统的图形卡来渲染图形,并且由于系统的图形驱动程序不是最新的或者不支持此操作而无法做到这一点,因此这里是解决方案。第1步:更新您的操作系统图形驱动程序。重新启动系统。尽可能设置系统的屏幕分辨率。尝试立即启动您的AVD。第2步:如果步骤1失败,请转到AVD Manager。编辑您的AVD。取消选中“使用主机GPU”选项。单击完成(保存)。再次启动AVD。
打开App,查看更多内容
随时随地看视频慕课网APP