Sergio Luchi
Member
This is not first time with AdMobs and Firebase. I have unfinished app with theese, which wokred fine. But it was on B4A 10.20 several weeks ago. Now I have back to this app already with B4A 10.50, but had an error. The easiest way - try official example from forum. So...
B4A 10.50 reinstalled twice following the step-by-step manual.
I downloaded "activity_admob_example" (https://www.b4x.com/android/forum/threads/b4xpages-the-almost-definitive-admob-example.113586/).
I downloaded my google-services.json, changed in "activity_admob_example" #ApplicationLabel and AddReplacement($ADMOB_APP_ID$, ca-app-pub-... in manifest.
I have done everything in SDK manager updates (I have read the forum and more or less know how it to do).
The compilation in Debug mode or Release mode is Ok, no errors, app is installing like usually on device via Bridge.
But after start the app I receive the messege from phone operating system:
----------------------------------------------------------------------------------------------------------------
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/lsv.iqtest-32UniKoceJHAXq8xGaNA4w==/base.apk"],nativeLibraryDirectories=[/data/app/lsv.iqtest-32UniKoceJHAXq8xGaNA4w==/lib/arm64, /system/lib64, /system/vendor/lib64]]
at android.app.ActivityThread.installProvider(ActivityThread.java:6398)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:5900)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5808)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1685)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:6651)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:824)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.ads.MobileAdsInitProvider" on path: DexPathList[[zip file "/data/app/lsv.iqtest-32UniKoceJHAXq8xGaNA4w==/base.apk"],nativeLibraryDirectories=[/data/app/lsv.iqtest-32UniKoceJHAXq8xGaNA4w==/lib/arm64, /system/lib64, /system/vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:125)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.app.ActivityThread.installProvider(ActivityThread.java:6374)
... 10 more
-------------------------------------------------------------------------------------------------------------------------
Like a black box! Please, have you any ideas what to do with this?
B4A 10.50 reinstalled twice following the step-by-step manual.
I downloaded "activity_admob_example" (https://www.b4x.com/android/forum/threads/b4xpages-the-almost-definitive-admob-example.113586/).
I downloaded my google-services.json, changed in "activity_admob_example" #ApplicationLabel and AddReplacement($ADMOB_APP_ID$, ca-app-pub-... in manifest.
I have done everything in SDK manager updates (I have read the forum and more or less know how it to do).
The compilation in Debug mode or Release mode is Ok, no errors, app is installing like usually on device via Bridge.
But after start the app I receive the messege from phone operating system:
----------------------------------------------------------------------------------------------------------------
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/lsv.iqtest-32UniKoceJHAXq8xGaNA4w==/base.apk"],nativeLibraryDirectories=[/data/app/lsv.iqtest-32UniKoceJHAXq8xGaNA4w==/lib/arm64, /system/lib64, /system/vendor/lib64]]
at android.app.ActivityThread.installProvider(ActivityThread.java:6398)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:5900)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5808)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1685)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:6651)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:824)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.ads.MobileAdsInitProvider" on path: DexPathList[[zip file "/data/app/lsv.iqtest-32UniKoceJHAXq8xGaNA4w==/base.apk"],nativeLibraryDirectories=[/data/app/lsv.iqtest-32UniKoceJHAXq8xGaNA4w==/lib/arm64, /system/lib64, /system/vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:125)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.app.ActivityThread.installProvider(ActivityThread.java:6374)
... 10 more
-------------------------------------------------------------------------------------------------------------------------
Like a black box! Please, have you any ideas what to do with this?