game_demo.xml: java.lang.NullPointerException

game_demo.xml: java.lang.NullPointerException
0.0 0


I load the tests case of 2.0 version in eclipse 3.7.2 which has ADT18, when i open the ‘test_demo. xml’, the error log view says “test_demo.xml: java.lang.NullPointerException”.

at org.cocos2dx.lib.Cocos2dxGLSurfaceView.onSizeChanged(
at android.view.View.setFrame(
at android.widget.TextView.setFrame(
at android.view.View.layout(
at android.widget.FrameLayout.onLayout(
at android.view.View.layout(

and i run the tests case in android after i compiled jni cpp files correctly, it doesn’t work.
what is wrong? my ADT version is incrrect?


Similar problem when using JNI to invoke some java method about controlling the Admob visibility.