gpt4 book ai didi

java - eclipse 中的 facebook NativeAd 找不到类 'com.facebook.ads.internal.view.hscroll.c' ,从方法 com.facebook.ads.MediaView 引用

转载 作者:行者123 更新时间:2023-12-02 03:49:00 25 4
gpt4 key购买 nike

我可以在eclipse中获取nativeAd并显示,但在布局中添加com.facebook.ads.MediaView,启动程序然后停止运行

03-17 10:36:56.161: E/dalvikvm(12626): Could not find class 'com.facebook.ads.internal.view.hscroll.c', referenced from method com.facebook.ads.NativeAd.a
03-17 10:36:57.610: E/dalvikvm(12626): Could not find class 'com.facebook.ads.internal.view.hscroll.c', referenced from method com.facebook.ads.MediaView.<init>
03-17 10:36:57.666: E/AndroidRuntime(12626): java.lang.NoClassDefFoundError: com.facebook.ads.internal.view.hscroll.c
03-17 10:36:57.666: E/AndroidRuntime(12626): at com.facebook.ads.MediaView.<init>(Unknown Source)
03-17 10:36:57.666: E/AndroidRuntime(12626): at com.facebook.ads.MediaView.<init>(Unknown Source)
03-17 10:36:57.666: E/AndroidRuntime(12626): at com.facebook.ads.internal.view.b.a(Unknown Source)
03-17 10:36:57.666: E/AndroidRuntime(12626): at com.facebook.ads.internal.view.b.<init>(Unknown Source)
03-17 10:36:57.666: E/AndroidRuntime(12626): at com.facebook.ads.NativeAdView.render(Unknown Source)
03-17 10:36:57.666: E/AndroidRuntime(12626): at com.facebook.ads.NativeAdView.render(Unknown Source)
03-17 10:36:57.666: E/AndroidRuntime(12626): at com.facebook.ads.NativeAd$1$1.a(Unknown Source)
03-17 10:36:57.666: E/AndroidRuntime(12626): at com.facebook.ads.internal.util.m.a(Unknown Source)
03-17 10:36:57.666: E/AndroidRuntime(12626): at com.facebook.ads.NativeAd$1.a(Unknown Source)
03-17 10:36:57.666: E/AndroidRuntime(12626): at com.facebook.ads.internal.DisplayAdController.c(Unknown Source)
03-17 10:36:57.666: E/AndroidRuntime(12626): at com.facebook.ads.NativeAd$1.a(Unknown Source)
03-17 10:36:57.666: E/AndroidRuntime(12626): at com.facebook.ads.internal.DisplayAdController$9.a(Unknown Source)
03-17 10:36:57.666: E/AndroidRuntime(12626): at com.facebook.ads.internal.adapters.l.a(Unknown Source)
03-17 10:36:57.666: E/AndroidRuntime(12626): at com.facebook.ads.internal.DisplayAdController.a(Unknown Source)
03-17 10:36:57.666: E/AndroidRuntime(12626): at com.facebook.ads.internal.DisplayAdController.n(Unknown Source)
03-17 10:36:57.666: E/AndroidRuntime(12626): at com.facebook.ads.internal.DisplayAdController.d(Unknown Source)
03-17 10:36:57.666: E/AndroidRuntime(12626): at com.facebook.ads.internal.DisplayAdController$3.run(Unknown Source)

最佳答案

看起来传递依赖缺失。缺少的方法实际上是缺少android RecyclerView支持库。您可以使用以下编译行来解决该问题。

编译“com.facebook.android:audience-network-sdk:4.10.0”编译 'com.android.support:recyclerview-v7:23.1.0'

关于java - eclipse 中的 facebook NativeAd 找不到类 'com.facebook.ads.internal.view.hscroll.c' ,从方法 com.facebook.ads.MediaView 引用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36053023/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com