Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Avoiding The "No EGLConfig found!" Error

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?

like image 267
coder_For_Life22 Avatar asked Jan 30 '12 19:01

coder_For_Life22


2 Answers

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

like image 107
BoJIHa npocmombI Avatar answered Sep 17 '22 15:09

BoJIHa npocmombI


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.

like image 24
tpbapp Avatar answered Sep 18 '22 15:09

tpbapp