我一直在使用一个整洁的库来处理强制关闭崩溃:
https://github.com/Ereza/CustomActivityOnCrash
在我决定将Firebase Notifications添加到我的应用程序之前,它一直都很棒。我只选择了通知,因此我只添加了以下依赖项:
compile 'com.google.firebase:firebase-messaging:10.0.1'
由于某种原因,Firebase崩溃报告也正在初始化,因为自定义崩溃处理程序可以看到它,甚至显示以下消息:
E/CustomActivityOnCrash: IMPORTANT WARNING! You already have an UncaughtExceptionHandler,
are you sure this is correct? If you use ACRA, Crashlytics or similar libraries,
you must initialize them AFTER CustomActivityOnCrash! Installing anyway, but your
original handler will not be called.
我的自定义崩溃处理程序是在(Application)onCreate()方法中初始化的第一件事,因此我看不到在何处或如何阻止Firebase Crash报告自身加载/初始化。
任何帮助将不胜感激!
我通过@BobSnyder的评论找到了答案-它使我搜索并找到了之前的问题/答案:
最终我用这个答案来解决我的问题:
If you want to disable the Firebase Analytics Crash Reporting, use the below
code inside app.gradle file.
configurations {
all*.exclude group: 'com.google.firebase', module: 'firebase-crash'
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句