简单集成bugly,记录下来,方便后期项目中直接使用
清单文件中添加权限
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.READ_LOGS"
tools:ignore="ProtectedPermissions" />
Application中onCreate中初始化
CrashReport.initCrashReport(getApplicationContext(), "de85778dfb", false);
build.gradle中添加引用
implementation 'com.tencent.bugly:crashreport:2.1.9'
implementation 'com.tencent.bugly:nativecrashreport:3.0'
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/6225.html