android app Bugly收集并分析崩溃信息

2025-04-21 01:05:28

1、库文件导入:用的androidstudio 直接在build.gradle文件中添加依赖和属性配置dependencies {旌忭檀祉 compile 'com.tencent.bugly:crashreport:latest.release'}eclipse 就手动导入 复制 库文件 到libs 下,,,,,

android app Bugly收集并分析崩溃信息

2、申请 key :添加应用 ---》 填写名字、平台----》确认

android app Bugly收集并分析崩溃信息
android app Bugly收集并分析崩溃信息

3、最简单初始化:继承一下 AppApplication , onCreate()中 CrashReport.initCrashReport(getApplicationContext(), 注册的 id ,false);我这是:c4116229-70d4-416a-9cba-1a07b74df440第三个参数为SDK调试模式开关, false时 可以在 腾讯端看到数据

android app Bugly收集并分析崩溃信息

4、完活 测试一下空指针异常 #96

android app Bugly收集并分析崩溃信息
android app Bugly收集并分析崩溃信息
android app Bugly收集并分析崩溃信息

5、此只是简单应用 仅提供入门,,更多晋级技巧 不做累述

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
相关推荐
  • 阅读量:79
  • 阅读量:26
  • 阅读量:22
  • 阅读量:82
  • 阅读量:56
  • 猜你喜欢