Skip to main content

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 in settings.gradle.kts:
settings.gradle.kts
Then add the dependency in your app’s build.gradle.kts:
build.gradle.kts
Replace 1.0.0 with the version you want to pin to — see the releases page for available versions.

2. Initialize the SDK

Call Lerix.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
Register the class in your 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:
Then open your dashboard — the error should appear within seconds.
You’re all set! Continue to Error Tracking to report custom errors and enable automatic crash capture, or Push Notifications to enable push delivery.