Error while Running Android Application - Could not initialize OpenglES emulation, use '-gpu off' to disable it

builder_dude picture builder_dude · Jun 6, 2015 · Viewed 95.2k times · Source

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\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

I am using android studio.

Answer

Lester picture Lester · May 10, 2016
  • Go to AVD Manager.
  • Edit your AVD.
  • Select 'Software GLES2.0' option on Emulated Performance. (The reason is because some users did not install graphic video card drivers )
  • Click Finish (Save).
  • Start AVD again. enter image description here