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

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

Posted by: admin February 23, 2018 Leave a comment

Questions:

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.

Answers:

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.

Questions:
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
Questions:
Answers:

Make sure that you run your AVD manager not from eclipse go to installed directory that is android/AVD manager.exe and right click run as administrator and then make changes.

Questions:
Answers:

I just ran into this, and it was because I running via Windows Remote Desktop. When I logged on locally it worked fine.

Questions:
Answers:

While configuring new device, use the option “Software – GLES 2.0” for Graphics under “Emulated Performance” category. This option will be seen once you click “Show Advanced Settings” while configuring AVD.