coder_For_Life22
coder_For_Life22

Reputation: 26971

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?

Upvotes: 10

Views: 13420

Answers (3)

tpbapp
tpbapp

Reputation: 2506

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.

Upvotes: 4

Dipen
Dipen

Reputation: 1064

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

Upvotes: 0

BoJIHa npocmombI
BoJIHa npocmombI

Reputation: 195

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

Upvotes: 4

Related Questions