Running AVD is giving error

15.5k views Asked by At

Command I'm running:

C:\Users\bhaishaki\AppData\Local\Android\sdk\tools\emulator.exe -netdelay none -netspeed full -avd Nexus_5_API_22_x86
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
6

There are 6 answers

0
Subhalaxmi On

check those links : Emulator!! and Emulator!!.

Note: Edit emulator Uncheck 'Use Host GPU' option. . Still any prob just let me know

0
ZaidRehman On

Are you sure you downloaded the packages required by the api level of your selected device.

I advice you to open SDK manager and check whether the required Api packages are installed or not .

0
Explore On

Go to AVD Manager. - Edit your AVD. - Uncheck 'Use Host GPU' option. - Click Finish (Save). - Start AVD again.

1
bchintx On

If you're using Android Studio, launch the AVD Manager, edit the Nexus AVD (ie. click the pencil icon), and in the resulting window, uncheck the "Use Host GPU" checkbox.

That fixed the error for me and allowed me to launch the emulator from Android Studio.

0
SRIDHARAN On

Following answer will be for android 2.0 and above users

Once you choose "Software - GLES 2.0" everything will be fine.

STEPS:

1)Tools -> Android -> AVD Manager 
2)Select "Edit" ( a green pencil like icon).
3)Select "Show Advanced Settings".
4)In the Graphics drop list select "Software - GLES 2.0"
5)Click finish to save and now again build the gradle.

Below image shows the setting which I had to remove the error. For further reference

0
Nidhin On

Edit your AVD ,On Graphics select Software-GLES instead of Auto.Its worked for me.I am also updated VM heap size to 384 in advanced settings option.