How do i initialize the new version of crashlytics?

心已入冬 提交于 2019-12-01 18:07:19
Mike Bonnell

Mike from Fabric and Crashlytics here. Your first init call is correct, but you could also use:

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

or use:

Fabric.with(this, CrashlyticsCore.getInstance());

with the following imports:

import com.crashlytics.android.Crashlytics;
import com.crashlytics.android.core.CrashlyticsCore;
import io.fabric.sdk.android.Fabric;

Using just CrashlyticsCore.getInstance() will give you only Crashlytics crash reporting and nothing else, where as new Crashlytics() would include Beta and Answers.

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