Requirements
- Android 7.0+ (API 24)
- Kotlin 1.9+, Android Gradle Plugin 8.5+
This is the native Kotlin library for apps with no Flutter involved. If your app is built with Flutter, use the Flutter SDK instead — it already covers iOS, Android, and Web from one package.
1. Add the dependency
The SDK is distributed via JitPack, built directly from GitHub releases. Add the JitPack repository insettings.gradle.kts:
settings.gradle.kts
build.gradle.kts:
build.gradle.kts
1.0.0 with the version you want to pin to — see the releases page for available versions.
2. Initialize the SDK
CallLerix.initialize() as early as possible — from a custom Application.onCreate(). This registers your app/device with the backend and installs automatic crash reporting.
LerixExampleApp.kt
AndroidManifest.xml:
AndroidManifest.xml
Find your API key and project ID in the Lerix Dashboard under Project Settings.
Parameters
3. Verify the integration
Throw a test error to confirm everything is working:You’re all set! Continue to Error Tracking to report custom errors and enable automatic crash capture, or Push Notifications to enable push delivery.