我如何在Android Studio离线模式下使用Firebase crashlytics

时间:2018-07-23 09:16:49

标签: android firebase crashlytics

如何在Android Studio离线模式下使用Firebase crashlytics 我正在使用Firebase崩溃报告。 支持将在9月停止,firebase崩溃将升级为crashlytics。 因为我使用android studio离线模式, 从互联网计算机获取库并将其添加到应用程序级别的build.gradle文件 实施文件('libs / fabric-1.4.2.aar') 实施文件(“ libs / crashlytics-2.9.1.aar”) 实施文件(“ libs / answers-1.4.1.aar”) 实施文件(“ libs / crashlytics-core-2.4.1.aar”) 实施文件(“ libs / beta-1.2.7.aar”) 。 (因为处于离线模式,所以不使用classpath和apply插件。)

如果我这样运行,将会收到错误消息。

java.lang.RuntimeException: Unable to get provider com.crashlytics.android.CrashlyticsInitProvider: io.fabric.sdk.android.services.concurrency.UnmetDependencyException: This app relies on Crashlytics. Please sign up for access at https://fabric.io/sign_up,
install an Android build tool and ask a team member to invite you to this app's organization.
    at android.app.ActivityThread.installProvider(ActivityThread.java:6242)
    at android.app.ActivityThread.installContentProviders(ActivityThread.java:5805)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5722)
    at android.app.ActivityThread.-wrap1(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6494)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
 Caused by: io.fabric.sdk.android.services.concurrency.UnmetDependencyException: This app relies on Crashlytics. Please sign up for access at https://fabric.io/sign_up,
install an Android build tool and ask a team member to invite you to this app's organization.
    at com.crashlytics.android.core.CrashlyticsCore.onPreExecute(CrashlyticsCore.java:235)
    at com.crashlytics.android.core.CrashlyticsCore.onPreExecute(CrashlyticsCore.java:209)
    at io.fabric.sdk.android.InitializationTask.onPreExecute(InitializationTask.java:44)
    at io.fabric.sdk.android.services.concurrency.AsyncTask.executeOnExecutor(AsyncTask.java:611)
    at io.fabric.sdk.android.services.concurrency.PriorityAsyncTask.executeOnExecutor(PriorityAsyncTask.java:43)
    at io.fabric.sdk.android.Kit.initialize(Kit.java:69)
    at io.fabric.sdk.android.Fabric.initializeKits(Fabric.java:440)
    at io.fabric.sdk.android.Fabric.init(Fabric.java:384)
    at io.fabric.sdk.android.Fabric.setFabric(Fabric.java:342)
    at io.fabric.sdk.android.Fabric.with(Fabric.java:313)
    at com.crashlytics.android.CrashlyticsInitProvider.onCreate(CrashlyticsInitProvider.java:27)
    at android.content.ContentProvider.attachInfo(ContentProvider.java:1917)
    at android.content.ContentProvider.attachInfo(ContentProvider.java:1892)
    at android.app.ActivityThread.installProvider(ActivityThread.java:6239)

我必须使用离线模式。 请帮助。

0 个答案:

没有答案