c++ - Cocos2d-x | Errors when Running on Emulator -


i new cocos2d-x. configure cocos2d-x in windows 8 / eclipse , use android-ndk-r8b. created project (helloworld)that running.the program when run in emulator gives following errors:

05-21 20:17:14.357: e/androidruntime(336): fatal exception: main 05-21 20:17:14.357: e/androidruntime(336): java.lang.runtimeexception: unable start  activity componentinfo{com.nabeelahmad.molitx/com.nabeelahmad.molitx.moleitx}: java.lang.illegalstateexception: setrenderer has been called instance. 05-21 20:17:14.357: e/androidruntime(336):  @ android.app.activitythread.performlaunchactivity(activitythread.java:1647) 05-21 20:17:14.357: e/androidruntime(336):  @ android.app.activitythread.handlelaunchactivity(activitythread.java:1663) 05-21 20:17:14.357: e/androidruntime(336):  @ android.app.activitythread.access$1500(activitythread.java:117) 05-21 20:17:14.357: e/androidruntime(336):  @ android.app.activitythread$h.handlemessage(activitythread.java:931) 05-21 20:17:14.357: e/androidruntime(336):  @ android.os.handler.dispatchmessage(handler.java:99) 05-21 20:17:14.357: e/androidruntime(336):  @ android.os.looper.loop(looper.java:123) 05-21 20:17:14.357: e/androidruntime(336):  @ android.app.activitythread.main(activitythread.java:3683) 05-21 20:17:14.357: e/androidruntime(336):  @ java.lang.reflect.method.invokenative(native method) 05-21 20:17:14.357: e/androidruntime(336):  @ java.lang.reflect.method.invoke(method.java:507) 05-21 20:17:14.357: e/androidruntime(336):  @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:839) 05-21 20:17:14.357: e/androidruntime(336):  @ com.android.internal.os.zygoteinit.main(zygoteinit.java:597) 05-21 20:17:14.357: e/androidruntime(336):  @ dalvik.system.nativestart.main(native method) 05-21 20:17:14.357: e/androidruntime(336): caused by: java.lang.illegalstateexception: setrenderer has been called instance. 05-21 20:17:14.357: e/androidruntime(336):  @ android.opengl.glsurfaceview.checkrenderthreadstate(glsurfaceview.java:1614) 05-21 20:17:14.357: e/androidruntime(336):  @ android.opengl.glsurfaceview.seteglconfigchooser(glsurfaceview.java:355) 05-21 20:17:14.357: e/androidruntime(336):  @ android.opengl.glsurfaceview.seteglconfigchooser(glsurfaceview.java:392) 05-21 20:17:14.357: e/androidruntime(336):  @ com.nabeelahmad.molitx.moleitx.oncreate(moleitx.java:78) 05-21 20:17:14.357: e/androidruntime(336):  @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1047) 05-21 20:17:14.357: e/androidruntime(336):  @ android.app.activitythread.performlaunchactivity(activitythread.java:1611) 05-21 20:17:14.357: e/androidruntime(336):  ... 11 more 

anyone have ideas i'm missing or doing wrong?

appreciate help, thanks.

at first, use latest ndk (android-ndk-r8e @ moment), older ndks have problems when running cocos2d-x. @ second, check emulator has option "use host gpu" turned on.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -