1. Install bugly
2. Restart after the installation is
complete Set in the project's build.gradle: classpath 'com.tencent.bugly:symtabfileuploader:1.3.9'
3. Set in the app's bugild.gradle: apply plugin: 'bugly' And the app's key and id
ID, KEY need to go to https://bugly.qq.com/v2/ for registration
application Add
compile 'com.tencent.bugly:crashreport:latest.release' in dependencies {}
//where latest .release refers to the latest Bugly SDK version number, or you can specify a clear version number, such as 2.1.9
compile 'com.tencent.bugly:nativecrashreport:latest.release'
//where latest.release refers to the latest Bugly NDK version number, You can also specify a clear version number, such as 3.0
. Fourth, the configuration is completed, initialized, and initialized in the onCreate() method in the custom Application.
Fifth , add the required permissions
<!--Bugly required permissions -->
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<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" / >
6. You can write your own exception test
public int bugReport(){
return 3/0;
}
7. Enter Tencent Bugly to view the uploaded error log to analyze the problem
Android development Bugly integration
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326309678&siteId=291194637
Recommended
Ranking