Introduction
Lerix captures errors and crashes from your native Android app so you can debug issues faster. After you complete the Android installation, useLerix.throwError to send custom errors or caught exceptions to your dashboard — uncaught crashes are captured automatically, with no extra code required.
Make sure you have initialized the SDK with
Lerix.initialize() before reporting errors.Report an error
UseLerix.throwError to manually report an error. This is useful when you catch an exception yourself and want to send it to Lerix with extra context.
Parameters
BugType values
BugSeverity values
Automatic crash capture
Lerix.initialize() installs a crash handler by default, wrapping Java/Kotlin’s global Thread.setDefaultUncaughtExceptionHandler — any uncaught exception on any thread is captured, regardless of which thread it occurs on.
A crash can’t reliably make a network call — the process is already terminating — so the report is written to disk synchronously at crash time, then sent automatically the next time your app launches, tagged type: CRASH, severity: CRITICAL. You don’t need to do anything to receive it; it shows up in the dashboard on the following launch.
To disable it (e.g. if your app already has its own crash reporter and you only want manual throwError calls):