libgdx issue - unfortunately, my-gdx-game has stopped

亡梦爱人 提交于 2019-12-06 15:17:15

It seems like there is a bug with the Android API 19 emulator. If I run a libgdx OpenGL ES 2.0 app in API-19 I get the same exception:

E/AndroidRuntime(791): Caused by: com.badlogic.gdx.utils.GdxRuntimeException: 
Libgdx requires OpenGL ES 2.0

The workaround is to use another emulator with an a little bit lower API level that still has OpenGL ES 2.0, but doesn't have this annoying bug. A good choice for testing would be the Galaxy Nexus Emulator with API 17 for example. For me the same libgdx OpenGL ES 2.0 app worked fine there. You should give this a try.

07-21 10:01:00.359: D/libEGL(791): Emulator without GPU support detected. Fallback to software renderer.

It's neccessary to switch on "Emulator options: Use Host GPU"

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