LiveOps with Cocos Creator, bug on Android

I’m trying use LiveOps with Cocos Creator. I added this code to AppDelegate.cpp

#ifdef SDKBOX_ENABLED
se->addRegisterCallback(register_all_SDKBoxJS_helper);
se->start();
#endif

And call it from js code

if (cc.sys.os == cc.sys.OS_IOS )
{
sdkbox.init(“key”, “secret”);
}
else if (cc.sys.os == cc.sys.OS_ANDROID
{
sdkbox.init(“key”, “secret”,“googleplay”);
}

on iOS, it works, but on Android it shows this bug

./Classes/SDKBoxJSHelper.cpp, 107): wrong number of arguments: 3, was expecting 1

How to fixes it? Thanks

you can fix it like this.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.