As I’m new to OpenGL programming, I have tried to test the sample code shown in the OpenGL2.0 tutorial. The application is compiled without error but when I try to run it in the emulator, it crashes.
Below is what DDMS says :
01-08 08:03:41.365: E/AndroidRuntime(380): FATAL EXCEPTION: GLThread 8
01-08 08:03:41.365: E/AndroidRuntime(380): java.lang.IllegalArgumentException: No configs match configSpec
01-08 08:03:41.365: E/AndroidRuntime(380): at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:760)
01-08 08:03:41.365: E/AndroidRuntime(380): at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:916)
01-08 08:03:41.365: E/AndroidRuntime(380): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1246)
01-08 08:03:41.365: E/AndroidRuntime(380): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1116)
Can anyone explain me the reason for the crash?
Thats because the emulator does not support opengl es 2, it currently only supports opengl es 1. You will need an actual device to run your code.