I’m reaching out because I’ve encountered a problem with several of my apps after updating to SDK33. Specifically, when I open the apps on screens that contain banner Ads, the application crashes, and I receive an error message as shown in the image that I’ll upload to the community.
Additionally, I’m curious if these errors might be related to specifying in Google Play that the application uses an advertising ID.
I have attempted a workaround by deleting the banners on some screens, and the app no longer crashes. However, I need to have advertising in my app. Has anyone else faced a similar challenge, and if so, do you have any insights or solutions to share?
I greatly appreciate any guidance or assistance you can provide to help resolve this issue.
Exception java.lang.NullPointerException: Attempt to invoke interface method ‘boolean com.google.android.ump.ConsentInformation.canRequestAds()’ on a null object reference
at com.google.appinventor.components.runtime.util.KodularAdManager$Consent$3.onConsentFormDismissed (SourceFile:189)
at com.google.android.ump.UserMessagingPlatform.loadAndShowConsentFormIfRequired (com.google.android.ump:user-messaging-platform@@2.1.0:2)
at com.google.appinventor.components.runtime.util.KodularAdManager$Consent.hxYOFxFjLpN1maJuWNxUV40nExCGxsxkDPOTgtzMu4zlZCQb3bPlKsXo1SYJg6ME (SourceFile:1174)
at com.google.appinventor.components.runtime.util.KodularAdManager$Consent$1.onConsentInfoUpdateSuccess (SourceFile:142)
at com.google.android.gms.internal.consent_sdk.zzt.run
at android.os.Handler.handleCallback (Handler.java:938)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loop (Looper.java:246)
at android.app.ActivityThread.main (ActivityThread.java:8512)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1130)
Yes, I added the Ad banner component again and the app followed crashing. I added in one screen to test It, and the app only crashed when. I opened this screen.
It might have a problem o bug with this component in kodular.