gpt4 book ai didi

android - 无法获取提供者 com.crashlytics.android.CrashlyticsInitProvider java.lang.ClassNotFoundException

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:53:53 25 4
gpt4 key购买 nike

你好,我使用 fabric 来解决崩溃问题,但我在 Android 低于 5 时遇到问题

错误:

E/AndroidRuntime: FATAL EXCEPTION: main java.lang.RuntimeException: Unable to get provider com.crashlytics.android.CrashlyticsInitProvider: java.lang.ClassNotFoundException: Didn't find class "com.crashlytics.android.CrashlyticsInitProvider" on path: DexPathList[[zip file "/data/app/ir.adp.picassoapp-2.apk"],nativeLibraryDirectories=[/data/app-lib/ir.adp.picassoapp-2, /vendor/lib, /system/lib, /data/datalib]] at android.app.ActivityThread.installProvider(ActivityThread.java:5184) at android.app.ActivityThread.installContentProviders(ActivityThread.java:4733) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4666) at android.app.ActivityThread.access$1300(ActivityThread.java:166) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1439) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:194) at android.app.ActivityThread.main(ActivityThread.java:5455) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:525) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:966) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:733) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.crashlytics.android.CrashlyticsInitProvider" on path: DexPathList[[zip file "/data/app/ir.adp.picassoapp-2.apk"],nativeLibraryDirectories=[/data/app-lib/ir.adp.picassoapp-2, /vendor/lib, /system/lib, /data/datalib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53) at java.lang.ClassLoader.loadClass(ClassLoader.java:501) at java.lang.ClassLoader.loadClass(ClassLoader.java:461) at android.app.ActivityThread.installProvider(ActivityThread.java:5169) at android.app.ActivityThread.installContentProviders(ActivityThread.java:4733)  at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4666)  at android.app.ActivityThread.access$1300(ActivityThread.java:166)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1439)  at android.os.Handler.dispatchMessage(Handler.java:107)  at android.os.Looper.loop(Looper.java:194)  at android.app.ActivityThread.main(ActivityThread.java:5455)  at java.lang.reflect.Method.invokeNative(Native Method)  at java.lang.reflect.Method.invoke(Method.java:525)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:966)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:733)  at dalvik.system.NativeStart.main(Native Method) 

请帮帮我

最佳答案

启用多索引对于 Android API 早于 21 的设备,包括 multidex 库:

implementation 'com.android.support:multidex:1.0.2'

并在您的 Application 类中扩展 MultiDexApplication

关于android - 无法获取提供者 com.crashlytics.android.CrashlyticsInitProvider java.lang.ClassNotFoundException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49797235/

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