AppCrashDispose项目简介 app异常处理 1:调试版本使用错误页面提示 2:线上使用永不crash
build.gradle文件中添加:
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
并且:
dependencies {
implementation 'com.github.ashLikun:AppCrashDispose:{latest version}'
}
AppCrashConfig.Builder.create(this)
.enabled(true) //default: true
.showRestartButton(true) //default: true
.trackActivities(true) //default: false
.minTimeBetweenCrashesMs(2000) //default: 3000
.isDebug(false)
.apply();