MichaelStott / KivMob

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

Multiple Logcat Errors (Kimob=Master, Api 33, Ver=com.google.firebase:firebase-ads:21.4.0) #127

Closed boyintheroom closed 1 year ago

boyintheroom commented 1 year ago
logcat
02-07 13:45:58.752 29198 29198 I python  :  Traceback (most recent call last):
02-07 13:45:58.756 29198 29198 I python  :    File "/home/dheeraj/buildozer/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/Phenon/armeabi-v7a/android/runnable.py", line 38, in run
02-07 13:45:58.756 29198 29198 I python  :    File "/home/dheeraj/buildozer/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/Phenon/armeabi-v7a/kivmob.py", line 231, in __init__
02-07 13:45:58.756 29198 29198 I python  :  NameError: name 'MobileAds' is not defined
02-07 13:45:58.760 29198 29198 I python  :  Traceback (most recent call last):
02-07 13:45:58.760 29198 29198 I python  :    File "/home/dheeraj/buildozer/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/Phenon/armeabi-v7a/android/runnable.py", line 38, in run
02-07 13:45:58.760 29198 29198 I python  :    File "/home/dheeraj/buildozer/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/Phenon/armeabi-v7a/kivmob.py", line 303, in load_rewarded_ad
02-07 13:45:58.760 29198 29198 I python  :    File "/home/dheeraj/buildozer/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/Phenon/armeabi-v7a/kivmob.py", line 334, in _get_builder
02-07 13:45:58.767 29198 29198 I python  :  AttributeError: 'AndroidBridge' object has no attribute '_test_devices'
02-07 13:45:58.775 29198 29198 I python  :  Traceback (most recent call last):
02-07 13:45:58.776 29198 29198 I python  :    File "/home/dheeraj/buildozer/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/Phenon/armeabi-v7a/android/runnable.py", line 38, in run
02-07 13:45:58.776 29198 29198 I python  :    File "/home/dheeraj/buildozer/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/Phenon/armeabi-v7a/kivmob.py", line 298, in set_rewarded_ad_listener
02-07 13:45:58.776 29198 29198 I python  :  NameError: name 'AdMobRewardedVideoAdListener' is not defined

Having this error for 8 days couldnt figure it out. @MichaelStott Sir Please help.

Api=33 Kivy=master(2.2.0) Kivymd=1.2.0.dev0 Kivmob=master Ads version=com.google.firebase:firebase-ads:21.4.0 jdk=17 python 3.8

boyintheroom commented 1 year ago

@nekoprog @MichaelStott Problem Persists. No Change In The Error. 😣

nekoprog commented 1 year ago

@boyintheroom you can try pull from my patch branch, or wait for @MichaelStott to merge my PR

boyintheroom commented 1 year ago

@nekoprog The updated code says "TODO since no more RewardedVideoAd" does that mean there will be no rewarded ads support further in future? I have Only Integrated rewarded video ads with kivmob.

nekoprog commented 1 year ago

There is rewarded video ads, but you have to implement it yourself since those class name is not there in latest admob-ads, maybe google change the class name. Hence, a TODO for others who can help implement newer code.

Here some documentation https://firebase.google.com/docs/reference/android/com/google/android/gms/ads/rewarded/package-summary

Get some idea how to implement it, kivmob is open source after all.

boyintheroom commented 1 year ago

How Can I pull from your patch branch (im new)? & if i do will it fix the error?

nekoprog commented 1 year ago

It will fix NameError *** is not defined. That's all I can do right now.