MichaelStott / KivMob

AdMob support for Kivy
MIT License
143 stars 38 forks source link

Getting 'AndroidBridge' object has no attribute '_interstitial' error while using real admob ids #85

Closed tanishqborkar closed 4 years ago

tanishqborkar commented 4 years ago

I was not getting this error when using TestAds but upon using real admob ids there was this error coming .Pls tell me about a potential fix for this

akgupta0777 commented 4 years ago

Please add Your code I am here to help you. Let me see where you are doing mistake. I can't understand your problem without looking at the code.

Send the Error logs .

Error logs are something like this Error : Traceback Most recent call last …

tanishqborkar commented 4 years ago

Here are the code Screenshots: mainApp

request

InAppTry

kvTry

requestKV

here are the logs

Screenshot (48)

akgupta0777 commented 4 years ago

@tanishqborkar By looking at the logs It seems that in your code there is something related to any variable or object named MobileAds and I can't see anything in your code that shows information about MobileAds . So please include that code.

Also please attach the full buildozer.spec file also.

It seems that you are trying to run your app on your phone via command

buildozer android deploy.

Try converting to APK first by using command

buildozer android debug And then install APK on your phone.

And Feel free to ask help because we are here for you.

MichaelStott commented 4 years ago

MobileAds is a reference to a Java package in AdMob (see line 27 of kivmob.py) that isn't being instantiated for some reason. The only two reasons I can think of for this would be either AndroidBridge was never instantiated by KivMob or you are missing the AdMob library in buildozer.spec.

If you have a small demo application that you can share, that would help in debugging this.

akgupta0777 commented 4 years ago

@MichaelStott Thanks for pointing the reference. I also thinks that @tanishqborkar didn't add the KivMob library in buildozer.spec requirements section This is a common mistake most beginners do.

So @tanishqborkar please show us your buildozer.spec or add KivMob in your requirements in buildozer.spec

Please report here in comments .if this will not works so that we will fix issues in KivMob (if any).

tanishqborkar commented 4 years ago

The error is solved . I had not mentioned the gradle dependencies and android meta data in buildozer spec file.Now my App is published and shows ads too...Thank You for such an outstanding initiative of implementing ads in kivy......

akgupta0777 commented 4 years ago

Thanks for your kind words. Please close the issue if your problem is solved.