Android Question Problem.....C:\Android\platforms\android-28\android.jar

kisoft

Well-Known Member
Licensed User
Longtime User
HI
I changed the path to: C:\Android\platforms\android-28\android.jar
Now I get this error:
B4X:
--------- beginning of crash
java.lang.RuntimeException: Unable to instantiate service anywheresoftware.b4a.objects.FirebaseNotificationsService: java.lang.ClassNotFoundException: Didn't find class "anywheresoftware.b4a.objects.FirebaseNotificationsService" on path: DexPathList[[zip file "/data/app/xxxxx.xxxxxx-WZPXXXXX_XXXXX8MA==/base.apk"],nativeLibraryDirectories=[/data/app/xxxxx.xxxxxx-WZPXXXXX_XXXXX8MA==/lib/arm64, /system/lib64, /system/vendor/lib64]]
    at android.app.ActivityThread.handleCreateService(ActivityThread.java:3459)
    at android.app.ActivityThread.-wrap4(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1702)
    at android.os.Handler.dispatchMessage(Handler.java:105)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6710)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770)
Caused by: java.lang.ClassNotFoundException: Didn't find class "anywheresoftware.b4a.objects.FirebaseNotificationsService" on path: DexPathList[[zip file "/data/app/xxxxx.xxxxxx-WZPXXXXX_XXXXX8MA==/base.apk"],nativeLibraryDirectories=[/data/app/xxxxx.xxxxxx-WZPXXXXX_XXXXX8MA==/lib/arm64, /system/lib64, /system/vendor/lib64]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
    at android.app.ActivityThread.handleCreateService(ActivityThread.java:3456)
    ... 8 more

This error is about getting permission to show personalized ads.
When I try to display an interstitial ad I get this error:
B4X:
** Activity (ust1) Resume **
Error occurred on line: 111 (ust1)
java.lang.RuntimeException: Object should first be initialized (InterstitialAd).
    at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:50)
    at anywheresoftware.b4a.admobwrapper.AdViewWrapper$InterstitialAdWrapper.getReady(AdViewWrapper.java:333)
    at finder.finder.ust1._reklama(ust1.java:550)
    at finder.finder.ust1._activity_keypress(ust1.java:523)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:738)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:357)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:260)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
    at finder.finder.ust1$HandleKeyDelayed.runDirectly(ust1.java:230)
    at finder.finder.ust1$HandleKeyDelayed.run(ust1.java:227)
    at android.os.Handler.handleCallback(Handler.java:789)
    at android.os.Handler.dispatchMessage(Handler.java:98)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6710)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770)

everything worked well on C:\Android\platforms\android-27\android.jar
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

kisoft

Well-Known Member
Licensed User
Longtime User
I have
B4A 8v50

FirebaseAdMob v1.52
FirebaseAnalytics v1.02
FirebaseAuth v1.05

manifest
B4X:
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)
CreateResourceFromFile(Macro, FirebaseAdMob.FirebaseAds)
CreateResourceFromFile(Macro, FirebaseAnalytics.FirebaseAnalytics)

I moved everything to a new computer. All these problems are on the new computer. On the old computer, the path is also set to android-28. Ads are displayed normally.
But there is a problem with displaying the consent form for personalized ads.
 
Upvote 0

kisoft

Well-Known Member
Licensed User
Longtime User
Why are you adding FirebaseNotifications to the manifest editor if you are not using push notifications?
I have removed this error. I had to accidentally uncomment. Now there is no mistake with displaying the consent form for personalized ads, but the form does not display.
Ads are also not displayed.

Maybe Goggles changed something with the form itself, for example it added a translation to many languages.
If the form is not displayed then the ads are also not displayed.
 
Last edited:
Upvote 0
Top