Closed tanishqborkar closed 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 …
Here are the code Screenshots:
here are the logs
@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.
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.
@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).
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......
Thanks for your kind words. Please close the issue if your problem is solved.
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