I have this error from Crashlytics
It corresponds to this line:
Any ideas?
Fatal Exception: java.lang.ClassCastException
java.lang.Integer cannot be cast to java.lang.String
android.app.SharedPreferencesImpl.getString (SharedPreferencesImpl.java:283)
anywheresoftware.b4a.admobwrapper.AdViewWrapper$MobileAdsWrapper.Initialize (AdViewWrapper.java:249)
com.xlingenieria.unifilar.b4xmainpage$ResumableSub_CheckConsentAndAddAds.resume (b4xmainpage.java:2937)
com.xlingenieria.unifilar.b4xmainpage._vvvvvvvvvvvvvvvvvvvvvvvvvvv4 (b4xmainpage.java:2912)
com.xlingenieria.unifilar.b4xmainpage$ResumableSub_B4XPage_Created.resume (b4xmainpage.java:2246)
com.xlingenieria.unifilar.b4xmainpage._b4xpage_created (b4xmainpage.java:2127)
...
B4X:
Private Sub CheckConsentAndAddAds
Dim m As MobileAds
Wait For (m.Initialize) MobileAds_Ready
' m.SetConfiguration(m.CreateRequestConfigurationBuilder(Array("94BEBAAE1A9C9C6B3928ED3DE75C7370"))) 'optional. Array with test device ids. See unfiltered logs to find correct id.
If Ads.GetConsentStatus = "UNKNOWN" Or Ads.GetConsentStatus = "REQUIRED" Then
Wait For (Ads.RequestConsentInformation(False)) Complete (Success As Boolean)
End If
If Ads.GetConsentStatus = "REQUIRED" And Ads.GetConsentFormAvailable Then
Wait For (Ads.ShowConsentForm) Complete (Success As Boolean)
End If
It corresponds to this line:
B4X:
Wait For (m.Initialize) MobileAds_Ready
Any ideas?