title: How to solve this error 'com.google.ads.mediation.admob.AdMobAdapter cannot be cast to com.google.android.gms.ads.mediation.m '?
body: <p>am using firebase adapter in my project, now am integrate admob for rewarded ad it's working fine, but every video after completion it will throw following error...</p>
  
  <pre><code>  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@12685008@12.6.85 (020306-197041431):262)
      at com.google.android.gms.ads.internal.reward.c.b(:com.google.android.gms.dynamite_dynamitemodulesa@12685008@12.6.85 (020306-197041431):54)
      at com.google.android.gms.ads.internal.reward.client.e.onTransact(:com.google.android.gms.dynamite_dynamitemodulesa@12685008@12.6.85 (020306-197041431):56)
      at android.os.Binder.transact(Binder.java:380)
      at com.google.android.gms.internal.ads.zzej.transactAndReadExceptionReturnVoid(Unknown Source)
      at com.google.android.gms.internal.ads.zzahb.zze(Unknown Source)
      at com.google.android.gms.internal.ads.zzahm.resume(Unknown Source)
      at com.mopub.mobileads.GooglePlayServicesRewardedVideo$1.onResume(GooglePlayServicesRewardedVideo.java:84)
      at com.mopub.common.MoPubLifecycleManager.onResume(MoPubLifecycleManager.java:83)
      at com.mopub.common.MoPub.onResume(MoPub.java:257)
      at com.coderays.realquiz.RealQuizDashBoard.onResume(RealQuizDashBoard.java:956)
      at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1280)
      at android.app.Activity.performResume(Activity.java:6096)
      at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3011)
      at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3063)
      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1361)
      at android.os.Handler.dispatchMessage(Handler.java:102)
      at android.os.Looper.loop(Looper.java:135)
      at android.app.ActivityThread.main(ActivityThread.java:5343)
      at java.lang.reflect.Method.invoke(Native Method)
      at java.lang.reflect.Method.invoke(Method.java:372)
      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
  </code></pre>
  
  <p>i will try this method <a href="https://stackoverflow.com/a/49959522/6477998">https://stackoverflow.com/a/49959522/6477998</a> but still throw this error.</p>
  
  <p>my gradle is..</p>
  
  <pre><code>dependencies {
       implementation('com.mopub:mopub-sdk-interstitial:5.0.0@aar') {
       transitive = true
        }
      // For rewarded videos. This will automatically also include interstitials
       implementation('com.mopub:mopub-sdk-rewardedvideo:5.0.0@aar') {
       transitive = true
        }
       implementation 'com.google.firebase:firebase-core:16.0.0'
       implementation 'com.google.firebase:firebase-ads:15.0.1'
    }
  </code></pre>
  
  <p>Which one to change, please give me a solution, am searching still 3 days but no improvement.</p>
  
  <p>Advance thanx...</p>