运行 Android 应用程序时出错 - 无法初始化 OpenglES 仿真,请使用“-gpu off"禁用它 [英] Error while Running Android Application - Could not initialize OpenglES emulation, use '-gpu off' to disable it

查看:12
本文介绍了运行 Android 应用程序时出错 - 无法初始化 OpenglES 仿真,请使用“-gpu off"禁用它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是安卓编程的新手.我指的是谷歌开发者网站来学习安卓.当我运行应用程序 UI 时,我遇到了这些错误.

I am new to android programming. I was referring google developer website to learn android. While I was running an application UI, I got these errors.

 H:SDK	oolsemulator.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

我使用的是安卓工作室.

I am using android studio.

推荐答案

我最近遇到了同样的问题,出现这个问题是因为 AVD 尝试使用系统的显卡来渲染图形,但也无法这样做,因为您的系统的图形驱动程序没有最新的或者它不支持这个,所以这里是解决方案.

I recently faced the same issue, The problem occurs because AVD tries to render graphics using system's graphics card and could not do that either because your system's graphics driver is not up to date or it does not support this so here is the solution.

第 1 步:

  • 更新您的操作系统图形驱动程序.
  • 重新启动系统.
  • 将系统的屏幕分辨率设置得尽可能高.
  • 现在尝试启动您的 AVD.

第 2 步:

  • 如果第 1 步失败,请转到 AVD 管理器.
  • 编辑您的 AVD.
  • 取消选中使用主机 GPU"选项.
  • 点击完成(保存).
  • 再次启动 AVD.

这篇关于运行 Android 应用程序时出错 - 无法初始化 OpenglES 仿真,请使用“-gpu off"禁用它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆