Android Question FirebaseAdMob 1.60 - MobileAds

LucaMs

Expert
Licensed User
My test app (just ads "stuff") crashes always.
AdMob app ID is correct.

I'm using B4A V. 8.80; is FirebaseAdMob 1.60 compatible with this version?

(tried with android 28 & 29)


FATAL EXCEPTION: main
Process: com.test.rewardedvideotest, PID: 11677
java.lang.RuntimeException: Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.ads.MobileAdsInitProvider" on path: DexPathList[[zip file "/data/app/com.test.rewardedvideotest-B2CwMYjYXa1wmCN8pwJpEA==/base.apk"],nativeLibraryDirectories=[/data/app/com.test.rewardedvideotest-B2CwMYjYXa1wmCN8pwJpEA==/lib/arm64, /system/lib64, /vendor/lib64, /product/lib64]]
at android.app.ActivityThread.installProvider(ActivityThread.java:7209)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:6693)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6594)
at android.app.ActivityThread.-wrap2(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7523)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.ads.MobileAdsInitProvider" on path: DexPathList[[zip file "/data/app/com.test.rewardedvideotest-B2CwMYjYXa1wmCN8pwJpEA==/base.apk"],nativeLibraryDirectories=[/data/app/com.test.rewardedvideotest-B2CwMYjYXa1wmCN8pwJpEA==/lib/arm64, /system/lib64, /vendor/lib64, /product/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
 

DonManfred

Expert
Licensed User
Upvote 0

LucaMs

Expert
Licensed User
addition

If you want to use targetsdk 29 then you need to add SDK29 with the b4asdkmanager first.

Scroll down to Android-29->"Android SDK Platform 29 (Android 29)" <-- Install it
Yes, I installed 29 before having b4a 9.50 and using the old google's manager.

Have to study that .bat, removing some things and use the b4a sdk manager.

Thank you, @DonManfred
 
Upvote 0

LucaMs

Expert
Licensed User
i suggest to completely remove the sdk-folder installed by the old sdkmanager (the one in your userdata) and only use the one installed with the B4ASDKManager.
Never is the old manager anymore. It is no longer compatible with the newest SDK
I'm not sure that the old stuff installed by the old manager is under userdata. Indeed, the opposite, because when I installed the SDK 29 using it, it tried to do it in C:, does'nt allow me to do it (permissions I think, strangely) so I installed it in the userdata.

Are you sure that the b4a manager installs all in c:\xxx?
 
Upvote 0
Top