googleads / googleads-mobile-android-mediation

Sample Android project showcasing how to build a mediation adapter or custom event for the Google Mobile Ads SDK.
Apache License 2.0
242 stars 198 forks source link

NPE on Vungle SDK initialization #222

Closed abgita closed 4 years ago

abgita commented 4 years ago

Stacktrace:

Fatal Exception: java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.Collection.size()' on a null object reference at com.vungle.warren.Vungle.isInitialized(Vungle.java:611) at com.vungle.warren.Vungle.canPlayAd(Vungle.java:693) at com.google.ads.mediation.vungle.VungleMediationAdapter.onInitializeSuccess(VungleMediationAdapter.java:199) at com.google.ads.mediation.vungle.VungleInitializer$2.run(VungleInitializer.java:98) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:216) at android.app.ActivityThread.main(ActivityThread.java:7258) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)

Devices:

abgita commented 4 years ago

Google Play services SDK:

com.google.firebase:firebase-core:17.2.1 com.google.firebase:firebase-ads:18.3.0 com.google.firebase:firebase-analytics:17.2.1

Mediation:

com.google.ads.mediation:vungle:6.4.11.1