Skip to main content
The Klaritics Android SDK collects analytics from Android apps and sends them to your self-hosted Klaritics instance. Add the Maven repository and dependency, then initialize once from your Application. Artifact: com.deeptaai.klaritics:klaritics-android-sdk:1.0.2

Requirements

You need a Project ID and a Server host from the Klaritics dashboard. Your project ID is on the Getting Started page.

Add the repository

The SDK is published to a public Maven repository. Add it in whichever place your project declares repositories:
If your project uses dependencyResolutionManagement with RepositoriesMode.FAIL_ON_PROJECT_REPOS, the repository must go in settings.gradle.

Add the dependency

app/build.gradle

Configure your build

1

Keep Klaritics classes in ProGuard / R8

If you use ProGuard or R8, keep the Klaritics classes so events are logged correctly:
proguard-rules.pro
2

Disable dexing artifact transformation

Add this flag to your app module’s gradle.properties, at <project>/<app-module>/gradle.properties:
gradle.properties

Initialize the SDK

Call Klaritics.setup(context, config) once, from your Application class or main entry point, before any other Klaritics call.

KlariticsConfig

Verify initialization

When the SDK initializes successfully, this line appears in Logcat:

API reference

All methods are called on the Klaritics object. Attributes are Map<String, Any?>.

Common recipes

Log an event

Identify a user and set properties

Track a screen

Troubleshooting

Next steps

Verify your integration

Send test events from your app and watch them land on the Getting Started page.

Release notes

What changed in each Android SDK version.

Artifact: com.deeptaai.klaritics:klaritics-android-sdk:1.0.2 · Release notes