admob - > adfonic广告网络调解

时间:2013-08-24 05:51:51

标签: android eclipse admob

在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

1 个答案:

答案 0 :(得分:0)

您尚未在应用中添加Adfonic中介适配器。包括它,它将起作用。