I have been using AdRequestBuilder with the OldGoogleConsent library without problem for some time
With apps targetting SDK 34, I am getting the error
Correction the target SDK does not seem to matter
It seems to happen whenever it is built with B4A Version 13
Exception java.lang.NoSuchMethodError:
at anywheresoftware.b4a.admobwrapper.AdViewWrapper$AdRequestBuilderWrapper.NonPersonalizedAds (AdViewWrapper.java:285)
Can anyone help with this?
B4X:
Sub LoadAd(AdmobView As AdView)
Dim builder As AdRequestBuilder
builder.Initialize
Dim consent As ConsentManager = Starter.consent
If consent.IsRequestLocationInEeaOrUnknown Then
If consent.ConsentState = consent.STATE_NON_PERSONALIZED Or consent.ConsentState = consent.STATE_UNKNOWN Then
builder.NonPersonalizedAds
End If
End If
AdmobView.LoadAdWithBuilder(builder)
End Sub
Correction the target SDK does not seem to matter
It seems to happen whenever it is built with B4A Version 13
Exception java.lang.NoSuchMethodError:
at anywheresoftware.b4a.admobwrapper.AdViewWrapper$AdRequestBuilderWrapper.NonPersonalizedAds (AdViewWrapper.java:285)
Can anyone help with this?
Last edited: