[Solved]Sdkbox is nil when integrate review into my project

Hi.all
I installed review plugin success.
and I registered
register_all_PluginReviewLua(L);
register_all_PluginReviewLua_helper(L);
in lua_module_register.h.

and built successfully without errors.

but when it comes to running.
it pops up bellow message in DDMS.
12-24 22:09:20.443: D/cocos2d-x debug info(2679): [LUA-print] load view error: [string “app.views.SplashScene”]:0: module ‘sdkbox’ not found:

I 'v no idea . Am i lose something?

Can you post the code that you use to show review dialog?

Can you try this sample and see if it works for you?

https://github.com/sdkbox/sdkbox-review-sample

Thank u for your feedback ,nite.
Sample woks fine.
and I solved the problem myself,

register_all_PluginReviewLua(L);
register_all_PluginReviewLua_helper(L);

lines above should be put in the correct order in lua_module_register.
I put it in the front of the “lua_module_register”,It woks fine.

like the comments said “//Dont’ change the module register order unless you know what your are doing”
but don’t know how it works .

That’s good point, we might need to update the documentation for lua register.