0

在 admob 中使用 adfonic 时出现错误。我收到以下错误。

找不到适配器类“com.google.ads.mediation.adfonic.AdfonicAdapter”。您是否链接了广告网络的中介适配器?跳过广告网络。

详细的例外情况如下。

        Cannot find adapter class 'com.google.ads.mediation.adfonic.AdfonicAdapter'. Did you link the ad network's mediation adapter? Skipping ad network.
    The following was caught and handled:
    java.lang.ClassNotFoundException: com.google.ads.mediation.adfonic.AdfonicAdapter
        at java.lang.Class.classForName(Native Method)
        at java.lang.Class.forName(Class.java:217)
        at java.lang.Class.forName(Class.java:172)
        at com.google.ads.g.a(SourceFile:133)
        at com.google.ads.i.run(SourceFile:116)
        at android.os.Handler.handleCallback(Handler.java:615)
        at android.os.Handler.dispatchMessage(Handler.java:92)
        at android.os.Looper.loop(Looper.java:137)
        at android.app.ActivityThread.main(ActivityThread.java:4918)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:511)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:994)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:761)
        at dalvik.system.NativeStart.main(Native Method)
    Caused by: java.lang.NoClassDefFoundError: com/google/ads/mediation/adfonic/AdfonicAdapter
        ... 14 more
    Caused by: java.lang.ClassNotFoundException: com.google.ads.mediation.adfonic.AdfonicAdapter
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
        ... 14 more        Cannot find adapter class 'com.google.ads.mediation.adfonic.AdfonicAdapter'. Did you link the ad network's mediation adapter? Skipping ad network.
    The following was caught and handled:
    java.lang.ClassNotFoundException: com.google.ads.mediation.adfonic.AdfonicAdapter
        at java.lang.Class.classForName(Native Method)
        at java.lang.Class.forName(Class.java:217)
        at java.lang.Class.forName(Class.java:172)
        at com.google.ads.g.a(SourceFile:133)
        at com.google.ads.i.run(SourceFile:116)
        at android.os.Handler.handleCallback(Handler.java:615)
        at android.os.Handler.dispatchMessage(Handler.java:92)
        at android.os.Looper.loop(Looper.java:137)
        at android.app.ActivityThread.main(ActivityThread.java:4918)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:511)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:994)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:761)
        at dalvik.system.NativeStart.main(Native Method)
    Caused by: java.lang.NoClassDefFoundError: com/google/ads/mediation/adfonic/AdfonicAdapter
        ... 14 more
    Caused by: java.lang.ClassNotFoundException: com.google.ads.mediation.adfonic.AdfonicAdapter
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
        ... 14 more

4

1 回答 1

0

您的应用中没有包含 Adfonic 中介适配器。包括它,它将起作用。

于 2013-08-24T23:48:15.533 回答