Cocos2d-x Version?
WHICH device?
DID U build ndk?
COULD YOU upload the APK file?
PLZ don’t just said the logcat info, PLZ provide more details. Thanks.
coo coo wrote:
Same problem here…tried bagus flyer’s suggestions, no dice.
>
02-25 15:24:06.440: E/AndroidRuntime(915): FATAL EXCEPTION: GLThread 96
02-25 15:24:06.440: E/AndroidRuntime(915): java.lang.IllegalArgumentException: No configs match configSpec
02-25 15:24:06.440: E/AndroidRuntime(915): at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:838)
02-25 15:24:06.440: E/AndroidRuntime(915): at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:994)
02-25 15:24:06.440: E/AndroidRuntime(915): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1348)
02-25 15:24:06.440: E/AndroidRuntime(915): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1202)
>
>
Blurrrghhh. Can’t even build a blank cocos2d-x project.
Used the latest beta available. Using an emulated Nexus S I believe. Built NDK, not sure how to acess the apk.
But I was able to eventually get this running.
You require the emulator to use GPU processing and be version 4.2 android. Additionally the first line of bagus hack worked.
Thanks
James Chen wrote:
Cocos2d-x Version?
WHICH device?
DID U build ndk?
COULD YOU upload the APK file?
>
PLZ don’t just said the logcat info, PLZ provide more details. Thanks.
>
coo coo wrote:
> Same problem here…tried bagus flyer’s suggestions, no dice.
>
> 02-25 15:24:06.440: E/AndroidRuntime(915): FATAL EXCEPTION: GLThread 96
> 02-25 15:24:06.440: E/AndroidRuntime(915): java.lang.IllegalArgumentException: No configs match configSpec
> 02-25 15:24:06.440: E/AndroidRuntime(915): at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:838)
> 02-25 15:24:06.440: E/AndroidRuntime(915): at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:994)
> 02-25 15:24:06.440: E/AndroidRuntime(915): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1348)
> 02-25 15:24:06.440: E/AndroidRuntime(915): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1202)
>
>
> Blurrrghhh. Can’t even build a blank cocos2d-x project.
I got Hellocpp to work. The mistake i was doing was not building the project using NDK. After building using NDK it works fine for me on my Galaxy Nexus.
For those that wind up here in the future, one potential problem could be your emulator. Play around with it. Screen size shouldn’t matter, but the emulated CPU just might. I was trying mine on an Intel Atom (x86) Android v4.3 emulator. It would fail with the above error EVERY TIME. I created another emulator, this time as ARM (armabi-v7a) Android v4.3 and like magic, there it was, working. If it works for you, before you cheer with your head all sideways, just hit ctrl+F11. Good luck, all!
I have the same problem on emulator and on device too. I use cocos2d-x 3.0 alpha1. I have also changed to version 2.2.1 and here is the Log in Eclipse:
11-23 12:49:09.990: D/dalvikvm(921): Trying to load lib /data/app-lib/org.cocos2dx.hellocpp-1/libhellocpp.so 0xb3d0dd40
11-23 12:49:10.060: D/dalvikvm(921): Added shared lib /data/app-lib/org.cocos2dx.hellocpp-1/libhellocpp.so 0xb3d0dd40
11-23 12:49:11.010: D/Cocos2dxActivity(921): model=sdk
11-23 12:49:11.010: D/Cocos2dxActivity(921): product=sdk
11-23 12:49:11.020: D/Cocos2dxActivity(921): isEmulator=true
11-23 12:49:12.820: I/Choreographer(921): Skipped 62 frames! The application may be doing too much work on its main thread.
11-23 12:49:15.110: I/Choreographer(921): Skipped 502 frames! The application may be doing too much work on its main thread.
11-23 12:49:15.160: W/dalvikvm(921): threadid=12: thread exiting with uncaught exception (group=0xb3a4ab90)
11-23 12:49:15.270: E/AndroidRuntime(921): FATAL EXCEPTION: GLThread 79
11-23 12:49:15.270: E/AndroidRuntime(921): Process: org.cocos2dx.hellocpp, PID: 921
11-23 12:49:15.270: E/AndroidRuntime(921): java.lang.IllegalArgumentException: No configs match configSpec
11-23 12:49:15.270: E/AndroidRuntime(921): at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:863)
11-23 12:49:15.270: E/AndroidRuntime(921): at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1024)
11-23 12:49:15.270: E/AndroidRuntime(921): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1401)
11-23 12:49:15.270: E/AndroidRuntime(921): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
11-23 12:49:15.390: D/gralloc_goldfish(921): Emulator without GPU emulation detected.
11-23 12:49:15.870: I/Choreographer(921): Skipped 74 frames! The application may be doing too much work on its main thread.
11-23 12:49:25.120: I/Process(921): Sending signal. PID: 921 SIG: 9
11-23 12:49:25.130: W/IInputConnectionWrapper(921): showStatusIcon on inactive InputConnection