Android Emulator crashing with GLES 2.x config

浪尽此生 提交于 2021-02-05 10:41:48

问题


My android emulator is crashing with this error.

C:\Users\Rakshit\AppData\Local\Android\Sdk\tools\emulator.exe -netdelay none -netspeed full -avd Nexus_5X_API_23
Hax is enabled
init: Could not find wglGetExtensionsStringARB!
Hax ram_size 0x60000000
getGLES2ExtensionString: Could not find GLES 2.x config!
Failed to obtain GLES 2.x extensions string!
HAX is working and emulator runs in fast virt mode.
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.

My emulator used to run fine till yesterday but ever since I updated my Windows 10 and Android Studio, it has stopped. I tried updating the graphics driver but that is fine as well. I did turn off the gpu but then my emulator runs very sluggishly. I checked many posts here regarding this and have found similar solutions. Could you please help.


回答1:


  1. Open AVD Manager

  2. Edit this AVD (the button is at the 'actions' column)

  3. Emulated Performance,Graphics:Software-GLE 2.0

  4. finish the configuration and restart your virtual device again

    Select 'Software-GLE 2.0' for Graphics,not select 'Automatic' or 'Hardware-GLE 2.0' (emulate graphics in software)



来源:https://stackoverflow.com/questions/40406917/android-emulator-crashing-with-gles-2-x-config

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