在Android中初始化Firebase crashlytics [英] Initializing Firebase crashlytics in android

查看:79
本文介绍了在Android中初始化Firebase crashlytics的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已在我的android项目中将Fabric Crashlytics迁移到Firebase Crashlytics.在使用Fabric时,在活动类中,我在下面的行中使用了

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());

但是在迁移之后,在Firebase Crashlytics中该替换什么?

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

先谢谢了.

推荐答案

激活Crashlytics时必须遵循Firebase教程.您不需要任何代码即可初始化Crashlytics,这是自动的.

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

在教程之后,您唯一需要做的是故意崩溃,api会检测到它,并且您的crashlytics将被连接.

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

请遵循以下文档: https://firebase.google.com/docs/crashlytics/get-started?hl=es&platform=android

这篇关于在Android中初始化Firebase crashlytics的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆