NoClassDefFoundError:Crashlytics FirebaseInfo

时间:2018-06-06 05:54:40

标签: java android proguard crashlytics android-proguard

我正在尝试在我的应用上启用minifyEnabled并且我已经解决了所有编译时警告但是当我运行它时会发生这种情况:

java.lang.NoClassDefFoundError: Failed resolution of: Lio/fabric/sdk/android/services/common/FirebaseInfo;
at com.crashlytics.android.CrashlyticsInitProvider.onCreate(CrashlyticsInitProvider.java:22)
at android.content.ContentProvider.attachInfo(ContentProvider.java:1917)
at android.content.ContentProvider.attachInfo(ContentProvider.java:1892)
at android.app.ActivityThread.installProvider(ActivityThread.java:6239)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:5805)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5722)

这是我的proguard-rules.pro

-keepattributes *Annotation*
-keepattributes SourceFile,LineNumberTable
-keep public class * extends java.lang. 
-keep class com.crashlytics.** { *; }
-dontwarn com.crashlytics.**

0 个答案:

没有答案