googleads / googleads-consent-sdk-android

Consent SDK
https://developers.google.com/admob/android/eu-consent
Apache License 2.0
100 stars 82 forks source link

Failed resolution of: Landroid/webkit/SafeBrowsingResponse #27

Closed dzungpv closed 6 years ago

dzungpv commented 6 years ago

I can show test form but it not full working: not show all button with this:

         .withPersonalizedAdsOption()
         .withNonPersonalizedAdsOption()
         .withAdFreeOption()
         .build();

The error log:

I/zygote64: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.hb>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/webkit/SafeBrowsingResponse; at void com.android.webview.chromium.WebViewChromium.init(java.util.Map, boolean) (WebViewChromium.java:48) at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int, java.util.Map, boolean) (WebView.java:651) at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int) (WebView.java:581) at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int) (WebView.java:564) at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet) (WebView.java:551) at void android.webkit.WebView.<init>(android.content.Context) (WebView.java:541) at void com.google.ads.consent.ConsentForm.<init>(com.google.ads.consent.ConsentForm$Builder) (ConsentForm.java:79) at void com.google.ads.consent.ConsentForm.<init>(com.google.ads.consent.ConsentForm$Builder, com.google.ads.consent.ConsentForm$1) (ConsentForm.java:45) at com.google.ads.consent.ConsentForm com.google.ads.consent.ConsentForm$Builder.build() (ConsentForm.java:208)

rampara commented 6 years ago

@dzungpv that NoClassDefFoundError is just a WebView warning and not an actual error. If you're not able to display the consent form, the onConsentFormError () callback will provide more information about the error.