Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 372
builder_dude Avatar asked Jun 06 '15 18:06

builder_dude


2 Answers

  • 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
like image 196
Lester Avatar answered Oct 26 '22 04:10

Lester


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.

Step 1:

  • Update your Operating system graphics driver.
  • Restart your system.
  • Set your system's screen resolution as high as possible.
  • Try to start your AVD now.

Step 2:

  • If step 1 fails, Go to AVD Manager.
  • Edit your AVD.
  • Uncheck 'Use Host GPU' option.
  • Click Finish (Save).
  • Start AVD again.
like image 71
4D - Problem Solver Avatar answered Oct 26 '22 04:10

4D - Problem Solver