W/Ads: Failed
java.lang.ClassCastException: com.google.ads.mediation.admob.AdMobAdapter cannot be cast to com.google.android.gms.ads.mediation.m
at com.google.android.gms.ads.internal.mediation.client.y.a(:com.google.android.gms.dynamite_dynamitemodulesa@12529004@12.5.29 (000308-192802242):262)
at com.google.android.gms.ads.internal.reward.c.b(:com.google.android.gms.dynamite_dynamitemodulesa@12529004@12.5.29 (000308-192802242):54)
at com.google.android.gms.ads.internal.reward.client.e.onTransact(:com.google.android.gms.dynamite_dynamitemodulesa@12529004@12.5.29 (000308-192802242):57)
at android.os.Binder.transact(Binder.java:361)
at com.google.android.gms.internal.zzev.zzb(Unknown Source)
at com.google.android.gms.internal.zzaez.zzc(Unknown Source)
at com.google.android.gms.internal.zzafk.resume(Unknown Source)
at com.byteghoul.grimdefender.GhoulAdsAndroid3.onResume(GhoulAdsAndroid3.java:411)
at com.byteghoul.grimdefender.AndroidLauncher.onResume(AndroidLauncher.java:437)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1198)
at android.app.Activity.performResume(Activity.java:5530)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3047)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3086)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5586)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
at dalvik.system.NativeStart.main(Native Method)
I don't think that it is influencing the ads serving / ads performance - everything seems to work fine. The error is thrown when RewardedVideoAd.resume(activity) is called by the application's onResume() method. I tested this on both a Samsung Galaxy S5 and a Samsung Galaxy S7 with the same result. Further, I tested it with both the standalone mobile ads SDK and the mobile ads SDK with Firebase:
compile 'com.google.firebase:firebase-core:12.0.1'
compile 'com.google.firebase:firebase-ads:12.0.1'
and
compile 'com.google.android.gms:play-services-ads:12.0.1'
both with same result.
As already mentioned, I don't feel like it has any negative effects so far - but I am wondering why the error is thrown and how I can fix it.
Greetings,
Gerhard
BYTEGHOUL GAMES