Reputation: 137
When I try to launch the virtual device on Android Studio, I get the following error:
"C:\Users\Kill me\AppData\Local\Android\sdk\tools\emulator.exe" -netdelay none -netspeed full -avd ApukaPappu
could not get wglGetExtensionsStringARB
Creating filesystem with parameters:
Size: 69206016
could not get wglGetExtensionsStringARB
Block size: 4096
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
Blocks per group: 32768
Inodes per group: 4224
could not get wglGetExtensionsStringARB
Inode size: 256
could not get wglGetExtensionsStringARB
Journal blocks: 1024
could not get wglGetExtensionsStringARB
Label:
could not get wglGetExtensionsStringARB
getGLES1ExtensionString: Could not find GLES 1.x config!
Blocks: 16896
Failed to obtain GLES 1.x extensions string!
Block groups: 1
Could not initialize emulated framebuffer
Reserved block group size: 7
Created filesystem with 11/4224 inodes and 1302/16896 blocks
emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it.
How can I fix it? P.S: I'm new to Android don't have much clue about anything.
Upvotes: 1
Views: 6311
Reputation: 1222
Following answer will be for android 2.0 and above users
The error occurs because most computers don't have computer graphic drivers installed. So we have to make it software GLES.
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.
Upvotes: 0
Reputation: 5707
You are getting this bcoz of graphics Driver . So you can Edit
your emulator
In AVD Manager
.
Steps:
- Edit your AVD.
- Uncheck 'Use Host GPU' option.
- Click Finish (Save).
- Start AVD again.
or You can create
new with Uncheck 'Use Host GPU'
option.
For more check myanswer!!
If , Still you have the problem than you have to update system graphics
.
Steps:
- 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.Let me know if still you have same prob ?
Upvotes: 1
Reputation: 11
Agree with the first answer that you should try updating you graphics card drivers, re-starting and seeing if that works.
Otherwise your error states "ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it." You can do this by:
I'm sure there are performance implications of this option so I would try fixing your drivers first.
Upvotes: 0