How to disable Crashlytics during development

后端 未结 28 2606
心在旅途
心在旅途 2020-11-29 15:42

Is there any simple way to turn Crashlytics Android SDK off while developing ?

I don\'t want it to send a crash every time I do something stupid

On the othe

28条回答
  •  南笙
    南笙 (楼主)
    2020-11-29 15:53

    There are two options in order to disable Firebase Crashlytics for the following version com.google.firebase:firebase-crashlytics:17.0.0:

    1. Add meta-tag to app's Manifest

    OR

    1. Configure directly in the app (keep in mind when set to false, the new value does not apply until the next run of the app)

    FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(true)

提交回复
热议问题