根据developer,添加了下面的代码以启用crashlytics。
final Fabric fabric = new Fabric.Builder(this)
.kits(new Crashlytics())
.debuggable(true) // Enables Crashlytics debugger
.build();
Fabric.with(fabric);
我的问题是:
.debuggable(true)
改为.debuggable(false)
?发布于 2018-11-06 21:03:58
为了初始化Crashlythics,只需将Fabric.with(this, new Crashlytics());
放在向用户显示的第一个活动的onCreate()
方法中即可。
1.-在第一次活动中,只叫一次
2.-您不需要设置debugger(true)
,只需将其设置为false
https://stackoverflow.com/questions/53179791
复制相似问题