How to disable Crashlytics during development

后端 未结 28 2574
心在旅途
心在旅途 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:50

    If you want to capture all crashes (for debug and release builds) but want to separate them in the Crashlytics Dashboard, you can add this line of code to build.gradle:

    debug {
        versionNameSuffix "-DEBUG"
    }
    

    For example, if your app's versionName is 1.0.0, your release builds will be tagged as 1.0.0 while debug builds will be 1.0.0-DEBUG

提交回复
热议问题