Tencent bugly

One.write picture description here
Two.write picture description here

android {
    defaultConfig {
        ndk {
            // 设置支持的SO库架构
            abiFilters 'armeabi' //, 'x86', 'armeabi-v7a', 'x86_64', 'arm64-v8a'
        }
    }
}

dependencies {
    compile 'com.tencent.bugly:crashreport:latest.release' //其中latest.release指代最新Bugly SDK版本号,也可以指定明确的版本号,例如2.1.9
    compile 'com.tencent.bugly:nativecrashreport:latest.release' //其中latest.release指代最新Bugly NDK版本号,也可以指定明确的版本号,例如3.0
}

3. Add permissions in AndroidManifest.xml:

<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" />

4. The simplest initialization
Get the APP ID and copy the following code to the project Application class onCreate() , Bugly will automatically detect the environment and complete the configuration:
write picture description here

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

5. Create a new product on the bugly official website to obtain the App ID and then fill in your own.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325685922&siteId=291194637