android - 在 Firebase crashlytics 中看不到非致命错误
问题描述
我正在使用最新版本的 Crashlytics,但我看不到未捕获的错误。
这是我的主要
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
await FirebaseCrashlytics.instance.setCrashlyticsCollectionEnabled(true);
FlutterError.onError = FirebaseCrashlytics.instance.recordFlutterError;
runApp(BaseApp());
}
我所做的一切都像文档中描述的那样: https ://firebase.flutter.dev/docs/crashlytics/usage#handling-uncaught-errors
我错过了什么?强制碰撞测试完美运行。
这些是依赖项:
发布规范.yaml
firebase_analytics: ^8.3.2
firebase_crashlytics: ^2.2.1
在我的应用程序级 build.gradle 我有这个
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
这在依赖项中
implementation platform('com.google.firebase:firebase-bom:26.5.0')
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.firebase:firebase-crashlytics:18.2.1'
在我的 Android 级别 build.gradle 中,在依赖项中:
classpath 'com.google.gms:google-services:4.3.5'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.1'
[编辑] 在你问之前,我已经多次重启了应用程序,并且过滤器处于“非致命”状态
解决方案
推荐阅读
- android-studio - Android Studio:如何在编辑器中增加自动换行
- angular - 我正在尝试修复项目中的 lint 问题,我遇到了以下错误,说缺少必需,模式参数不存在
- node.js - 试图将一个频道专用于仅发送图片和 reddit 链接
- linux - 尝试写入 .bss 时出现分段错误
- c# - C# 使用 DrawingVisual 从 MediaPlayer 绘制多个图像
- javascript - 在javascript中乘以数组?
- javascript - 在 ReactJS 中成功登录后如何重定向到页面?
- mesh - 是否有任何 C++ 库(用于 Linux)用于修复非流形网格并将其转换为流形几何?
- karate - 如果在空手道框架中满足条件,是否可以定义变量?
- tcl - 如何从特定行获取全名和列号