A simple, idiomatic Kotlin library to handle uncaught exceptions in Android applications. It automatically intercepts crashes and displays a customizable error activity instead of the standard "App has stopped" dialog.
- Kotlin-First: Fully refactored to idiomatic Kotlin using objects, properties, and
Parcelable. - Zero-Setup: Auto-initializes using a
ContentProvider. - Customizable: Configure background behavior, restart activities, custom UI, and more.
- Compose Ready: The default error activity is built with Jetpack Compose.
- Activity Tracking: Optionally tracks activity lifecycles to help debug the path to a crash.
| Main Screen | Crash Occurred | Crash Details |
|---|---|---|
![]() |
![]() |
![]() |
Add the library to your build.gradle.kts:
dependencies {
implementation("io.github.otangid:CreashReportCompose:$version")
}You can customize the behavior in your Application class or main activity:
CrashActivity.setConfig(
CrashConfig(
isEnabled = true,
isShowRestartButton = true,
isTrackActivities = true,
restartActivityClass = MainActivity::class.java
)
)MIT License


