异常java.lang.IllegalArgumentException: No configs match configSpec 的问题

12-12 06:24:06.908: ERROR/AndroidRuntime(753): FATAL EXCEPTION: GLThread 10


12-12 06:24:06.908: ERROR/AndroidRuntime(753): java.lang.IllegalArgumentException: No configs match configSpec


12-12 06:24:06.908: ERROR/AndroidRuntime(753): at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:760)


12-12 06:24:06.908: ERROR/AndroidRuntime(753): at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:916)


12-12 06:24:06.908: ERROR/AndroidRuntime(753): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1246)


12-12 06:24:06.908: ERROR/AndroidRuntime(753): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1116)

查了stackoverflow,openGl在Android2.2之后才支持(真机),

模拟器版本4.0.3之后才能跑,这不是坑爹么。换了实机测了下,果然可以了。


你可能感兴趣的:(android,cocos2dx)