Android Studio emulator could not find wglgetextensionsstringarb

人盡茶涼 提交于 2019-12-20 03:27:10

问题


When I try to start the emulator, suddenly I started getting this error

everything worked couple of days ago. if I disable GPU acceleration then it works but very slowly.

I tried re-enabling virtualization in the bios and it worked once and now I get the same error again..

I have the latest android studio 2.2.1 I have a new graphics card GeForce.

this is the error message

Hax is enabled

init: Could not find wglGetExtensionsStringARB!

getGLES2ExtensionString: Could not find GLES 2.x config! Hax ram_size 0x60000000

HAX is working and emulator runs in fast virt mode.

Failed to obtain GLES 2.x extensions string!

Could not initialize emulated framebuffer

emulator: Listening for console connections on port: 5554

emulator: Serial number of this emulator (for ADB): emulator-5554

emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it.


回答1:


SOLVED IT!

it seems to be a screen resolution issue.

I have a 4K laptop but I use 2 regular large screens and the laptop screen if off (lid closed). it seems that my graphics cards detects this and switches to the on board shitty intel card.

the solution is:

  1. open laptop lid (so the laptop screen will be on)
  2. start emulator
  3. once the emulator is running, you can close the laptop lid

or use your graphics cards settings to enable hardware GPU always for AVD (if possible)



来源:https://stackoverflow.com/questions/40124858/android-studio-emulator-could-not-find-wglgetextensionsstringarb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!