SonarSystems / Cocos-Helper

Cocos2d-x external framework helper.
MIT License
120 stars 48 forks source link

With Cocos2dx V3.9, Admob Crash in Android #36

Open ghost opened 8 years ago

ghost commented 8 years ago

Hi, when I use this helper, the following error exist:

java.lang.NullPointerException sonar.systems.framework.SonarFrameworkFunctions.ShowBannerAd(SonarFrameworkFunctions.java:721)

My app crash when try to load the Admob. Could you help to solve? Thanks

SonarSystems commented 8 years ago

Have you setup Cocos Helper and AdMob?

On 8 Dec 2015, at 02:32, alexshihu notifications@github.com wrote:

Hi, when I use this helper, the following error exist:

java.lang.NullPointerException sonar.systems.framework.SonarFrameworkFunctions.ShowBannerAd(SonarFrameworkFunctions.java:721)

My app crash when try to load the Admob. Could you help to solve? Thanks

— Reply to this email directly or view it on GitHub https://github.com/SonarSystems/Cocos-Helper/issues/36.

OscarLeif commented 8 years ago

That sounds very strange did you watch the videos from sonar systems ? Or that happens with that method only ?

ghost commented 8 years ago

Yes, I've watch the video serval time, and even recreate the cocos hello world project and integrate the Helper. Also failed.

ghost commented 8 years ago

Is there any change made by the new version of cocos2dx that will impact the JNIHelper works right? Can you do some investigate on that? Thanks

OscarLeif commented 8 years ago

I'm gonna check if the new version of google play services is the problem

OscarLeif commented 8 years ago

Finally I have new for you @alexshihu I make it work but It seems to work fine. I made no changes to the code. No crash or something like that, maybe you have a bad configuration in your project, ok lets start what maybe could be wrong.

I test it in a motorola moto G first gen. Also test fullscreen intersitial. It could be just bad configuration.