Back to Skills

sentry-android-sdk

Full Sentry SDK setup for Android. Use when asked to "add Sentry to Android", "install sentry-android", "setup Sentry in Android", or configure error monitoring, tracing, profiling, session replay, or logging for Android applications. Supports Kotlin and Java codebases.

237stars30forksUpdated 7/11/2026

Security Assessment

Low Risk(85/100)

Detected risks:

Agent-reviewed override(Sentry Android SDK setup: crontab is Sentry's cron-monitoring feature, Token=/token= are DSN/auth config, .env is SDK config, LaunchD is an integrations mention. Legitimate SDK skill.)
Security Score85/100

About sentry-android-sdk

An opinionated, wizard-style guide for adding the full Sentry SDK to an Android application in either Kotlin or Java. It scans the project and walks through complete setup across Sentry's capabilities: error monitoring, crash reporting, ANR (application-not-responding) detection, native NDK crash tracking, tracing, profiling, session replay, and logging, so an app gets end-to-end observability. Documented versions reflect Sentry docs at the time of writing (io.sentry:sentry-android:8.33.0 and Gradle plugin 6.1.0), with a reminder to verify against the current Android platform docs before implementing. Work proceeds in three phases. Phase 1, Detect, runs a battery of shell commands to understand the project before recommending anything: build system and whether it uses the Groovy or Kotlin DSL, AGP version, presence of a Gradle version catalog (gradle/libs.versions.toml), Kotlin versus Java sources, minSdk and target SDK, and popular libraries that have dedicated integrations such as Jetpack Compose, OkHttp/Retrofit, Room/SQLite, Timber, Jetpack Navigation, and Apollo, plus any existing SentryAndroid.init() call and the Application subclass where init belongs. A decision table maps each finding to its impact, such as Session Replay requiring API 26 or higher, or Compose warranting sentry-compose-android. Phase 2, Recommend, leads with a concrete proposal rather than open-ended questions: Error Monitoring, Tracing, and Session Replay as always-on core coverage, with Profiling, Logging, and User Feedback offered as optional enhancements based on the app's profile. Phase 3, Guide, chooses a setup path (Gradle plugin, recommended, or manual init) and presents two options: running the interactive Sentry wizard, which the user must run themselves because it opens a browser for login and handles org/project selection, plugin setup, dependency installation, DSN configuration, and ProGuard/R8 mapping upload; or a manual setup that, when a version catalog is detected, adds Sentry to gradle/libs.versions.toml first and references it via libs.* in build files. Use it to install and configure Sentry for a Kotlin or Java Android app, from detection through feature configuration and verification.

FAQ

Does it support both Kotlin and Java?

Yes. It supports Kotlin and Java Android codebases and detects which one you use during its Phase 1 project scan.

What Sentry features can it set up?

Error monitoring, crash reporting, ANR and native NDK crash detection, tracing, profiling, session replay, logging, and user feedback.

What are the recommended default features?

The always-on core coverage is Error Monitoring, Tracing, and Session Replay, with Profiling, Logging, and User Feedback offered as optional add-ons.

Is there an automated setup option?

Yes, the Sentry wizard (npx @sentry/wizard@latest -i android), which you run yourself because it opens a browser for login and handles plugin setup, dependencies, DSN config, and ProGuard/R8 mapping upload.

Are there any version requirements to watch for?

Session Replay requires minSdk API 26 or higher (a silent no-op below that); the doc references io.sentry:sentry-android:8.33.0 and Gradle plugin 6.1.0 but advises verifying against current Sentry Android docs.

All Files

9 files
references/integrations.md2.7 KB
View
references/session-replay.md14.6 KB
View
references/crons.md11.4 KB
View
references/metrics.md9.0 KB
View
SKILL.md30.0 KB
View
references/error-monitoring.md24.8 KB
View
references/logging.md12.3 KB
View
references/profiling.md14.2 KB
View
references/tracing.md27.3 KB
View

Install sentry-android-sdk

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill