首页 > 解决方案 > 在 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'

[编辑] 在你问之前,我已经多次重启了应用程序,并且过滤器处于“非致命”状态

标签: androidfirebasefluttercrashlytics

解决方案


推荐阅读