Add the sentry Android SDK to your app/build.gradle:
dependencies {
implementation 'io.sentry:sentry-android:8.+'
}
Add the DSN to your AndroidManifest.xml inside the <application> element:
<application>
<meta-data android:name="io.sentry.dsn" android:value="YOUR_DSN" />
<meta-data android:name="io.sentry.traces.sample-rate" android:value="0.01" />
</application>
The SDK initializes automatically via a content provider — no code changes needed for basic setup.
Verify your setup in an Activity:
import io.sentry.Sentry
Sentry.captureException(Exception("Test GlitchTip error!"))
Upload debug symbols for readable native crash stack traces using the GlitchTip CLI:
glitchtip-cli debug-files upload ./app/build --org my-org --project my-project
io.sentry.traces.sample-rate to a low value. Mobile apps can generate many transactions.io.sentry.release and io.sentry.environment meta-data tags to track versions.