美文网首页
android bug收集-Bugly集成

android bug收集-Bugly集成

作者: 河马过河 | 来源:发表于2019-04-15 16:05 被阅读0次

一、单独集成Bugly SDK

1、 在Module的build.gradle文件中添加依赖和属性配置

dependencies {
    implementation 'com.tencent.bugly:crashreport:latest.release' //其中latest.release指代最新版本号,也可以指定明确的版本号,例如2.1.5
}

二、同时集成Bugly SDK和NDK

1、在Module的build.gradle文件中添加依赖和属性配置:

android {
    defaultConfig {
        ndk { // 设置支持的SO库架构
                  abiFilters 'armeabi' //, 'x86', 'armeabi-v7a', 'x86_64', 'arm64-v8a'
           }
     }
}
dependencies {
     implementation 'com.tencent.bugly:crashreport:latest.release' 
    //其中latest.release指代最新版本号,也可以指定明确的版本号,例如2.1.5
    implementation 'com.tencent.bugly:nativecrashreport:latest.release'
   //其中latest.release指代最新版本号,也可以指定明确的版本号,例如2.2.0
}

三、最简单的初始化

CrashReport.initCrashReport(getApplicationContext(), "注册时申请的APPID", false); 

相关文章

网友评论

      本文标题:android bug收集-Bugly集成

      本文链接:https://www.haomeiwen.com/subject/vsauwqtx.html