How to add Vungle Plugin to Cocos Creator?

hello @mertakman,

for Vungle(or any SDKBOX plugin) you have to first build the project using cocos creator and then follow the steps mentioned in SDKBOX documentation http://docs.sdkbox.com/en/plugins/vungle/v3-js/ .

you will now find “sdkbox_config.json” inside “PROJECT/jsb-default/res” edit that to fill your ads ID and all, and then copy that .json , now go to cocos creator and edit your scripts for “sdkbox.PluginVungle.init();” and then build the project form creator again.

after building is complete you got to the “PROJECT/jsb-default/res” and you will find that “sdkbox_config.json” is missing. now all you have to do is to past"sdkbox_config.json" which you have copied earlier in “PROJECT/jsb-default/res” and build with cocos command line interface for that you have to follow the following steps.

  1. open cmd/terminal and cd to “jsb-default”.
  2. now run command " cocos compile -p android 23 -m’debug’ "

and you will have .apk file when it is done

let me know if you have any difficulties…

NOTE: don’t use double quotes

4 Likes