KivMob icon indicating copy to clipboard operation
KivMob copied to clipboard

'AndroidBridge' object has no attribute '_interstitial'

Open Mahyarasadi opened this issue 2 years ago • 3 comments

Hi, I compiled the test program in README.md and it was transferred to phone without any error when I click on the ads button no test ad is shown and I receive the following error on adb:

eabi-v7a/build/python-installs/kivmob/arm64-v8a/kivmob.py", line 279, in _is_interstitial_loaded
05-07 13:31:07.689 18176 18176 I python  :  AttributeError: 'AndroidBridge' object has no attribute '_interstitial'

buildozer.spec:

requirements = python3, kivy, android, jnius, https://github.com/MichaelStott/KivMob/archive/refs/heads/master.zip
android.permissions = INTERNET, ACCESS_NETWORK_STATE
android.api = 33
android.minapi = 21
android.sdk = 33
android.ndk = 25b
android.gradle_dependencies = com.google.firebase:firebase-ads:21.4.0
android.enable_androidx = True
p4a.branch = master
android.meta_data = com.google.android.gms.ads.APPLICATION_ID=ca-app-pub-3940256099942544~3347511713

I have tested the following firebase versions but all of them led to the same results.

android.gradle_dependencies = com.google.firebase:firebase-ads:21.4.0
android.gradle_dependencies = com.google.firebase:firebase-ads:19.4.0
android.gradle_dependencies = com.google.firebase:firebase-ads:15.0.0

Mahyarasadi avatar May 07 '23 11:05 Mahyarasadi

@Mahyarasadi try 19.8.0 But clean before you build again.

buildozer android clean

boyintheroom avatar May 09 '23 10:05 boyintheroom

Hi. I also got the same error; modifying the firebase version didn't work out.

carlos-mx avatar May 10 '23 16:05 carlos-mx

hello, did you find an issue ?

Mglt-b avatar Jun 25 '23 16:06 Mglt-b