Yes I have put sdkbox_config.json in resources folder. I can see the sdkbox_config.json file in assets folder of my android project, when i import it to eclipse.
Thanks for the updated document. I was able to find the issue. My project.properties file did not have this reference.
“android.library.reference.1=…/…/cocos2d-x/cocos/platform/android/java”
This reference is removed when I imported my project to eclipse and added libcocos2dx as library file to my project.
I tried building the project without importing to eclipse and now it reades cocos2dxActivity.java but get the following error:
Second, modify Cocos2dxActivity to edit the onCreate(final Bundle savedInstanceState) function to add a call to PluginWrapper.init(this);. The placement of this call is important. It must be done after the call to onLoadNativeLibraries();. Example:
Hi I have same issue
cocos2d-x-3.6 + sdkbox-iap_cpp_v1.1.4
I tested with pathes assets/sdkbox_config.json, assets/res/sdkbox_config.json, assets/[some folder registered to search path]/sdkbox_config.json
but everything are failed to find this file
I could know the file existance clearly with using “FileUtils::getInstance()->fullPathForFilename(“sdkbox_config.json”).c_str());” in jni code debugging
could you let me know which folders are searched when “sdkbox::IAP::init();” is called?
When i checked PluginWrapper code there are no onStart … functions so i excepted these
and i try to find PluginWrapper’s onStart in cocos2d-x 3.6 plugin folder but i can’t find it
what’s wrong?
I generated plugin from source code build script
I am using libPluginProtocol.jar it has PluginWrapper and sdkbox.jar also has same class
the “Multiple dex files define Lorg/cocos2dx/plugin/IAPWrapper” error was occurred
I think every user using plugin-x could have this issue
Could you guide me for this case?