NDK is always a problem. Writing such a code that can become a breeze in connecting with other platforms is always a problem when working with cocos2dx. This repo is a step made forward to make this pain a simple step.
run error: is am new to android so i don't know how to fix it
09-30 04:06:27.145: W/dalvikvm(800): threadid=11: thread exiting with uncaught exception (group=0x414c4700)
09-30 04:06:27.155: E/AndroidRuntime(800): FATAL EXCEPTION: GLThread 75
09-30 04:06:27.155: E/AndroidRuntime(800): java.lang.IllegalArgumentException: No config chosen
09-30 04:06:27.155: E/AndroidRuntime(800): at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:874)
09-30 04:06:27.155: E/AndroidRuntime(800): at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1024)
09-30 04:06:27.155: E/AndroidRuntime(800): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1401)
09-30 04:06:27.155: E/AndroidRuntime(800): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
android 4.2 run , it will crash