fbsamples/audience-network

facebook audience network always crash in kitkat

Closed this issue · 0 comments

i get this error only on Android systems under 21
I dont understand what caused of the error or how do I fix it

please some help

E/AndroidRuntime: FATAL EXCEPTION: main java.lang.RuntimeException: Unable to get provider com.facebook.ads.AudienceNetworkContentProvider: java.lang.ClassNotFoundException: com.facebook.ads.AudienceNetworkContentProvider at android.app.ActivityThread.installProvider(ActivityThread.java:4240) at android.app.ActivityThread.installContentProviders(ActivityThread.java:3992) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3946) at android.app.ActivityThread.access$1300(ActivityThread.java:123) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4424) 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:784) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.ClassNotFoundException: com.facebook.ads.AudienceNetworkContentProvider at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61) at java.lang.ClassLoader.loadClass(ClassLoader.java:501) at java.lang.ClassLoader.loadClass(ClassLoader.java:461) at android.app.ActivityThread.installProvider(ActivityThread.java:4225) at android.app.ActivityThread.installContentProviders(ActivityThread.java:3992)  at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3946)  at android.app.ActivityThread.access$1300(ActivityThread.java:123)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185)  at android.os.Handler.dispatchMessage(Handler.java:99)  at android.os.Looper.loop(Looper.java:137)  at android.app.ActivityThread.main(ActivityThread.java:4424)  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:784)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)  at dalvik.system.NativeStart.main(Native Method)