Avoiding The “No EGLConfig found!” Error

梦想的初衷 提交于 2019-11-30 23:24:55

问题


one of my users are reporting this error for my game.

i am using andengine as my engine. Here is the error.

java.lang.IllegalArgumentException: No EGLConfig found!
at org.andengine.opengl.view.ConfigChooser.chooseConfig(ConfigChooser.java:183)
at org.andengine.opengl.view.ConfigChooser.chooseConfig(ConfigChooser.java:157)
at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:916)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1246)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1116)

My question is, is there anything i can do to avoid this error?


回答1:


This exception appears if you use custom rom on your device, like cyanogenmod. And there is no way to prevent it.

http://www.andengine.org/forums/gles2/no-eglconfig-found-t6129.html




回答2:


You must enable the emulator GPU.

To do this in Eclipse go to Window > AVD Manager select your AVD and click "Edit...".

Check the "Use Host GPU" box, then save and restart your AVD.




回答3:


Create AVD with Target 4.0.3 -API Level 15 with GPU Emulation yes. My example stated running after this. IF you have further problem visit AndEngine Forum and get detail about OpenGL drivers



来源:https://stackoverflow.com/questions/9069264/avoiding-the-no-eglconfig-found-error

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