MAC OS X 10.7.5
cocos2d-2.0-x-2.0.3
i searched many resources about how to use JniHelper, but when i call this method, app crashed. report message : Failed to find class org/cocos2dx/lib/Cocos2dxHelper
cocos2d::JniMethodInfo minfo;
bool isHave = cocos2d::JniHelper::getStaticMethodInfoV");
//crashed here…………
if (!isHave) {
LOGD (“jni:method no found.”);
}else{
LOGD (“jni: method found.”);
minfo.env->CallStaticVoidMethod(minfo.classID, minfo.methodID);
}
btw: my app works fine on device(android 4.04) , but just call cocos2d::JniHelper::getStaticMethodInfo this method will cause crash.
i want to know the reason and how to do .
thanks.