避免“未找到 EGLConfig!”错误
我的一位用户报告了我的游戏的此错误。
我正在使用 andengine 作为我的引擎。这是错误。
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)
我的问题是,我能做些什么来避免这个错误吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您在设备上使用自定义 ROM(例如氰基mod),则会出现此异常。并且没有办法阻止它。
http://www.andengine.org/forums/gles2/no -eglconfig-found-t6129.html
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
您必须启用模拟器 GPU。
要在 Eclipse 中执行此操作,请转至 Window > AVD 管理器选择您的 AVD 并单击“编辑...”。
选中“使用主机 GPU”框,然后保存并重新启动 AVD。
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.
使用 Target 4.0.3 -API 级别 15 使用 GPU 模拟创建 AVD 是。我的示例说明在此之后运行。如果您还有其他问题,请访问 AndEngine 论坛并获取有关 OpenGL 的详细信息驱动程序
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