AdMob error in Cocos Creator 1.9.1

AdMob error in Cocos Creator 1.9.1
0.0 0


Hi, developing team.
I updated latest creator version 1.9.1 and link admob to my game.
I compiled it successfully but it shows black screen on device.

error message is following.

E/jswrapper: ERROR: Uncaught TypeError: Cannot read property 'setListener' of undefined, location: src/project.js:0:0
             [1]anonymous@(no filename):3
             [ERROR] (D:/SelfPub/TinkerPuzzle/build/jsb-default/frameworks/cocos2d-x/cocos/scripting/js-bindings/, 519): Invoking function (0xee8b3ee0) failed!

my source code corresponding to this error is following.

    if(cc.sys.isMobile) {
            adViewDidReceiveAd: function(name) {},
            adViewDidFailToReceiveAdWithError: function(name, msg) {},
            adViewWillPresentScreen: function(name) {},
            adViewDidDismissScreen: function(name) {},
            adViewWillDismissScreen: function(name) {},
            adViewWillLeaveApplication: function(name) {}

I had the issue like this at creator 1.7 but I fixed it following Cocos creator sdkbox integration error

I checked AppDelegate.cpp file and added codes pointed out above.
So frustrate for the Cocos Creator, whenever it is version up, new issues already fixed occur.
Please help me.


i’m checking on this issue.

plz manually add bellow codes to AppDelegate.cpp again,

#include "PluginAdMobJS.hpp"
#include "PluginAdMobJSHelper.h"

I’m so sorry for the inconvenience, this issue will be fixed with, and the new release be release 05.22 or 05.23.


These code already added when it compiled.
So strange.

At 1.7, 1.8 if I add these code, issue was fixed .
At 1.9.1 even it is added automatically but it is not fixed.


I checked AdMob with Creator 1.9.1, iOS. It works.
I’ll check on Android.


I found the issue on android.