The emulator does not support OpenGL ES 2.0 at the moment. You'll need a device to run them.
On Tue, Nov 22, 2011 at 10:16 AM, Stephen Lee <stephenl7...@yahoo.com>wrote: > Thank you for your posts. I guess the emulator just isnt capable of > opengl es 2, but the demos are very misleading. You can go to api > demos>graphics>opengl es 2 and it will run. If you see the code in the > sdk samples folder, it is opengl es 2. I will try to run the sample on > my phone asap > > On Nov 22, 11:53 am, Christopher Van Kirk > <christopher.vank...@gmail.com> wrote: > > Sorry, I'll solve your problem as well. > > > > The reason you're getting that error is that you've requested an EGL > > configuration that your device doesn't support for whatever reason, so > > the EGL configuration chooser factory is ending with no 'valid' > > configuration. That throws an exception that the GLSurfaceView is not > > particularly friendly about dealing with because it gets thrown into the > > render thread, which can't easily be caught by your activity (that I > > know of). > > > > What you need to do is loosen your constraints a bit so that you can get > > a valid configuration, or do some investigation about what EGL settings > > the device does support. > > > > Cheers, > > > > Chris... > > > > On 11/23/2011 12:45 AM, Stephen Lee wrote: > > > > > > > > > > > > > > > > > When my emulator (API 14.0) is running, I can go through API Demos and > > > select BasicGLSurfaceView (OpenGLES2), the app runs and a triangle > > > spins. When I load the project into Eclipse and build, the same > > > program stops working in the emulator as soon as I unlock the phone > > > and let it load, or load it from list of apps. For this reason, I'm > > > 90% sure the problem is Eclipse building it. I've already spent 2 days > > > trying to resolve this and it's frustrating. I've reinstalled already > > > and have everything properly installed. This seems to be the only > > > problem of its kind- Ive googled for hours, so probably a stupid error > > > > > Heres what I get from running the untouched sample into Eclipse > > > > > Logcat at crash----------------- > > > 11-19 21:35:52.887: E/AndroidRuntime(556): FATAL EXCEPTION: GLThread > > > 75 > > > 11-19 21:35:52.887: E/AndroidRuntime(556): > > > java.lang.IllegalArgumentException: No configs match configSpec > > > 11-19 21:35:52.887: E/AndroidRuntime(556): at > > > android.opengl.GLSurfaceView$BaseConfigChooser.cho > > > oseConfig(GLSurfaceView.java:825) > > > 11-19 21:35:52.887: E/AndroidRuntime(556): at > > > android.opengl.GLSurfaceView$EglHelper.start(GLSur faceView.java:981) > > > 11-19 21:35:52.887: E/AndroidRuntime(556): at > > > android.opengl.GLSurfaceView$GLThread.guardedRun(G LSurfaceView.java: > > > 1335) > > > 11-19 21:35:52.887: E/AndroidRuntime(556): at > > > android.opengl.GLSurfaceView$GLThread.run(GLSurfac eView.java:1189) > > > Console------------------------------ > > > [2011-11-19 21:34:40 - BasicGLSurfaceView] New emulator found: > > > emulator-5554 > > > [2011-11-19 21:34:40 - BasicGLSurfaceView] Waiting for > > > HOME('android.process.acore') to be launched... > > > [2011-11-19 21:35:16 - BasicGLSurfaceView] WARNING: Application does > > > not specify an API level requirement! > > > [2011-11-19 21:35:16 - BasicGLSurfaceView] Device API version is 14 > > > (Android 4.0.1) > > > [2011-11-19 21:35:16 - BasicGLSurfaceView] HOME is up on device > > > 'emulator-5554' > > > [2011-11-19 21:35:16 - BasicGLSurfaceView] Uploading > > > BasicGLSurfaceView.apk onto device 'emulator-5554' > > > [2011-11-19 21:35:16 - BasicGLSurfaceView] Installing > > > BasicGLSurfaceView.apk... > > > [2011-11-19 21:35:49 - BasicGLSurfaceView] Success! > > > [2011-11-19 21:35:50 - BasicGLSurfaceView] Starting activity > > > com.example.android.basicglsurfaceview.BasicGLSurf aceViewActivity on > > > device emulator-5554 > > > [2011-11-19 21:35:52 - BasicGLSurfaceView] ActivityManager: Starting: > > > Intent { act=... > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en