升级的地址
https://bugly.qq.com/docs/user-guide/instruction-manual-android-upgrade/?v=20180209200613#gradle
在defaultConfig里面添加
ndk {
//设置支持的SO库架构
abiFilters 'armeabi' , 'x86', 'armeabi-v7a', 'x86_64', 'arm64-v8a'
}
依赖
//注释掉原有bugly的仓库
//compile 'com.tencent.bugly:crashreport:latest.release'//其中latest.release指代最新版本号,也可以指定明确的版本号,例如2.3.2
compile 'com.tencent.bugly:crashreport_upgrade:latest.release'//其中latest.release指代最新版本号,也可以指定明确的版本号,例如1.2.0
compile 'com.tencent.bugly:nativecrashreport:latest.release' //其中latest.release指代最新版本号,也可以指定明确的版本号,例如2.2.0
在application类中进行配置 Appid
Bugly.init(getApplicationContext(), "34101b0d23", true);
androidmainfest中进行配置
权限
在上面添加