我最近将我的应用程序的 facebook admob 中介 sdk 更新到最新版本并由于 ClassCastException 而崩溃,下面是我得到的堆栈跟踪。我正在使用这个版本的 sdk。
实施 'com.google.ads.mediation:facebook:6.2.0.1'
Fatal Exception: java.lang.ClassCastException: android.view.ViewRootImpl cannot be cast to android.view.ViewGroup
at com.facebook.ads.redexgen.X.Th.A0I(Th.java:55202)
at com.facebook.ads.redexgen.X.5C.registerViewForInteraction(5C.java:13152)
at com.facebook.ads.redexgen.X.5C.registerViewForInteraction(5C.java:13147)
at com.facebook.ads.NativeAd.registerViewForInteraction(NativeAd.java:213)
at com.google.ads.mediation.facebook.FacebookAdapter$UnifiedAdMapper.trackViews(FacebookAdapter.java:939)
at com.google.android.gms.internal.ads.zzaoo.zzc(zzaoo.java:62)
at com.google.android.gms.internal.ads.zzanl.zza(zzanl.java:88)
at com.google.android.gms.internal.ads.zzgv.onTransact(zzgv.java:13)
at android.os.Binder.transact(Binder.java:949)
at fx.aW(fx.java:2)
at com.google.android.gms.ads.internal.mediation.client.r.x(r.java)
at com.google.android.gms.ads.nonagon.ad.nativead.ck.a(ck.java:25)
at com.google.android.gms.ads.nonagon.ad.nativead.aj.h(aj.java:4)
at com.google.android.gms.ads.nonagon.ad.nativead.ag.run(ag.java)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at qd.a(qd.java)
at com.google.android.gms.ads.internal.util.f.a(f.java:1)
at qd.dispatchMessage(qd.java)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:8167)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)