避免出现“找不到EGLConfig!”错误

10

我的一个用户在玩我的游戏时报告了这个错误。

我使用的是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)

我的问题是,有没有什么办法可以避免这个错误?


1
值得注意的是,模拟器不支持OpenGL ES 2.0。 - Paul Gregoire
3个回答

4

您必须启用模拟器GPU。

在Eclipse中,转到“Window”>“AVD Manager”,选择您的AVD,然后单击“编辑...”。

勾选“使用主机GPU”框,然后保存并重新启动AVD。


4

好吧,这不是真的,至少现在不是了。我在我的SGS上安装了最新的CyanogenMod,并且AndEngine运行得很好。 - Gonan
一年后听到这个消息真是太好了。 :) - BoJIHa npocmombI
1
@BoJIHanpocmombI 这是 Stack Overflow,无论问题/答案/评论之间的时间跨度如何,它们始终是相关的。 - arkon
当我使用Genymotion模拟器时,我也遇到了这个问题。 - Phillip Kigenyi

0

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接