找不到类“ com.facebook.marketing.internal.MarketingInitProvider”

时间:2019-06-16 14:46:47

标签: javascript android reactjs facebook

我正在尝试使用react-native-fbsdk在Android(4.4.2-KitKat)上运行tu,但是我在使用它时遇到了问题。

我发现了类似的问题,但没有解决:

https://github.com/viromedia/viro/issues/365 java.lang.NoClassDefFoundError and ClassNotFoundException after add android Facebook SDK to the project

控制台错误:

E/AndroidRuntime: FATAL EXCEPTION: main
    Process: org.domestika, PID: 1365
    java.lang.RuntimeException: Unable to get provider com.facebook.marketing.internal.MarketingInitProvider: java.lang.ClassNotFoundException: Didn't find class "com.facebook.marketing.internal.MarketingInitProvider" on path: DexPathList[[zip file "/data/app/org.domestika-2.apk"],nativeLibraryDirectories=[/data/app-lib/org.domestika-2, /system/lib]]
        at android.app.ActivityThread.installProvider(ActivityThread.java:4793)
        at android.app.ActivityThread.installContentProviders(ActivityThread.java:4385)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4325)
        at android.app.ActivityThread.access$1500(ActivityThread.java:135)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:136)
        at android.app.ActivityThread.main(ActivityThread.java:5017)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:515)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
        at dalvik.system.NativeStart.main(Native Method)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "com.facebook.marketing.internal.MarketingInitProvider" on path: DexPathList[[zip file "/data/app/org.domestika-2.apk"],nativeLibraryDirectories=[/data/app-lib/org.domestika-2, /system/lib]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
        at android.app.ActivityThread.installProvider(ActivityThread.java:4778)
        at android.app.ActivityThread.installContentProviders(ActivityThread.java:4385) 
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4325) 
        at android.app.ActivityThread.access$1500(ActivityThread.java:135) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) 
        at android.os.Handler.dispatchMessage(Handler.java:102) 
        at android.os.Looper.loop(Looper.java:136) 
        at android.app.ActivityThread.main(ActivityThread.java:5017) 
        at java.lang.reflect.Method.invokeNative(Native Method) 
        at java.lang.reflect.Method.invoke(Method.java:515) 
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) 
        at dalvik.system.NativeStart.main(Native Method)

感谢帮助。

0 个答案:

没有答案