Hi, I’m a newbie. I’m following this link http://docs.sdkbox.com/en/qa/integration-admob-to-creator/ to lean show Admod but only show black screen when running
. i’m using cocos creator 1.9
Here log in android studio
05-03 12:47:12.226 26995-27022/? E/jswrapper: ERROR: Uncaught TypeError: Cannot read property ‘init’ of undefined, location: src/project.js:0:0
STACK:
[0]admobInit@src/project.js:36
[1]onLoad@src/project.js:31
[2]anonymous@(no filename):3
[3]invoke@src/jsb_polyfill.js:3508
[4]activateNode@src/jsb_polyfill.js:11669
[5]_activate@src/jsb_polyfill.js:2336
[6]runSceneImmediate@src/jsb_polyfill.js:21602
[7]anonymous@src/jsb_polyfill.js:21694
[8]anonymous@src/jsb_polyfill.js:13737
[9]anonymous@src/jsb_polyfill.js:10225
[10]anonymous@src/jsb_polyfill.js:16575
[11]c@src/jsb_polyfill.js:9374
[12]77.n.invoke@src/jsb_polyfill.js:9267
[13]78.l.emit@src/jsb_polyfill.js:9432
[14]callback@src/jsb_polyfill.js:21734
would u plz check AppDelegate.cpp https://github.com/sdkbox/sdkbox-sample-admob/blob/master/js/frameworks/runtime-src/Classes/AppDelegate.cpp#L78
is there some code like:
#ifdef SDKBOX_ENABLED
sc->addRegisterCallback(register_all_PluginAdMobJS);
sc->addRegisterCallback(register_all_PluginAdMobJS_helper);
#endif
Thanks,
1 Like