Initializing Firebase crashlytics in android

僤鯓⒐⒋嵵緔 提交于 2021-01-29 06:29:46

问题


I have migrated Fabric Crashlytics to Firebase Crashlytics in my android project. While using fabric, in activity class I have used below line,

Fabric.with(this, new Crashlytics());

But after migration, what is the exact replacement of this in Firebase Crashlytics.

Thanks in Advance..


回答1:


You have to follow the Firebase tutorial when activating the Crashlytics. You don't need any code to initialize Crashlytics, it's automatic.

The only thing you need, following the tutorial, is to make an intentional crash, api will detect it and your crashlytics will be connected.

Please, follow the next documentation: https://firebase.google.com/docs/crashlytics/get-started?hl=es&platform=android



来源:https://stackoverflow.com/questions/64203922/initializing-firebase-crashlytics-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!