# flutter_bugly **Repository Path**: tianle/flutter_bugly ## Basic Information - **Project Name**: flutter_bugly - **Description**: 腾讯Bugly flutter应用更新统计及异常上报插件,支持Android、iOS - **Primary Language**: Dart - **License**: Not specified - **Default Branch**: 1.0.3 - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-12-28 - **Last Updated**: 2023-02-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # flutter_bugly 腾讯 Bugly 插件,支持Android/iOS 运营统计、原生异常上报、flutter 异常上报、应用更新。 --- ## 一、引入 ### ```yaml dependencies: flutter_bugly: git: url: https://gitee.com/tianle/flutter_bugly ref: 1.0.3 ``` ## 二、项目配置 在 `android/app/build.gradle` 的 android 下加入: ```gradle lintOptions { // 如打包出现Failed to transform libs.jar to match attributes checkReleaseBuilds false } defaultConfig { ndk { // 设置支持的 so 库架构 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' abiFilters 'armeabi-v7a' } } ``` ## 三、使用 ```dart import 'package:flutter_bugly/flutter_bugly.dart'; /// 使用 flutter 异常上报 void main() { FlutterBugly.postCatchedException(() { // 如果需要 ensureInitialized,请在这里运行。 // WidgetsFlutterBinding.ensureInitialized(); runApp(MyApp()); FlutterBugly.init( androidAppId: "your android app id", iOSAppId: "your iOS app id", ); }); } ```