How to use JniHelper- -??

How to use JniHelper- -??
0.0 0


[ error: JNIHelper.h: No such file or directory ]

void aFunction()
JniMethodInfo t;
, “org/cocos2dx/lib/Cocos2dxActivity”
, “preloadBackgroundMusic”
, “(Ljava/lang/String;)V”);
jstring jstr = t.env~~>NewStringUTF;
t.env~~>CallStaticObjectMethod(t.classID, t.methodID, jstr);



Hello, I think JNIHelper.h is just for cocos2d-x engine rather than your application.So the project you create will not contain the include path of ‘cocos2dx\platform\android\jni’.If you really wanna use this function, please add the path to LOCAL_C_INCLUDES variable in of your project.