![](http://dl2.iteye.com/upload/attachment/0123/3946/436f611e-64ee-3173-af4a-39b8fc8b967a.png)
2. Restart after the installation is
complete Set in the project's build.gradle: classpath 'com.tencent.bugly:symtabfileuploader:1.3.9'
![](http://dl2.iteye.com/upload/attachment/0123/3944/13a5b99d-0da8-34b2-a660-8262b7c4d8bf.png)
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
![](http://dl2.iteye.com/upload/attachment/0123/3948/be940a5f-9e61-399a-970f-faba365b155f.png)
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.
![](http://dl2.iteye.com/upload/attachment/0123/3950/4c8a286a-f0b8-36f4-a80b-62a7fde3e375.png)
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