避免“未找到 EGLConfig!”错误

发布于 2024-12-31 23:20:10 字数 553 浏览 2 评论 0原文

我的一位用户报告了我的游戏的此错误。

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

浪菊怪哟 2025-01-07 23:20:10

如果您在设备上使用自定义 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

旧竹 2025-01-07 23:20:10

您必须启用模拟器 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.

银河中√捞星星 2025-01-07 23:20:10

使用 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文