sentry-android-sdk

Automate Sentry Android SDK integration for Kotlin and Java apps.

246|29|Updated Nov 10, 2025
One-click install
npx skills add https://github.com/getsentry/sentry-for-ai --skill sentry-android-sdk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sentry-android-sdk
Source: https://github.com/getsentry/sentry-for-ai/tree/main/skills/sentry-android-sdk
Command: npx skills add https://github.com/getsentry/sentry-for-ai --skill sentry-android-sdk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill enables developers to set up Sentry on Android projects, covering error monitoring, tracing, session replay, profiling, and logging for Kotlin and Java codebases.

Core Features & Use Cases

  • Full platform bundles that scan your Android project, recommend features, and guide you through setup — including error monitoring, tracing, profiling, session replay, and logging.
  • Gradle plugin-based instrumentation that enables zero-source-change integration and automatic asset enrichment.
  • Flexible initialization paths: Gradle-plugin configuration or manual SentryAndroid.init() usage, with guidance for verification.
  • Quick-start and verification steps to ensure visibility of issues, traces, and replays in Sentry.

Quick Start

Initialize Sentry in your Android app using SentryAndroid.init() and verify error monitoring, tracing, and session replay in the dashboard.

Frequently Asked Questions about sentry-android-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Sentry error monitoring and tracing in an Android app?

Sentry Android SDK integration automates error monitoring and tracing setup for Android apps by applying Gradle plugin instrumentation, enabling zero-source-change integration and automatic asset enrichment for Kotlin and Java projects.

Can I use Sentry session replay and profiling with a Kotlin codebase?

Sentry Android SDK supports Kotlin and Java codebases, enabling session replay and profiling in production environments. Full platform bundles scan your Android project and guide you through enabling these specific monitoring features.

What is the best way to automate Sentry instrumentation without changing source code?

Automating Sentry instrumentation without source changes uses the Sentry Android Gradle plugin. This approach handles automatic instrumentation and asset enrichment, providing a zero-source-change integration path for your Android project.

Do I need to manually call SentryAndroid.init() if I use the Sentry Gradle plugin?

The Sentry Android SDK offers flexible initialization paths. You can configure integration via the Gradle plugin or manually call SentryAndroid.init(), with guidance provided for verifying that errors, traces, and replays appear in the dashboard.

Why should I use the Sentry Android SDK instead of manual logging for production apps?

The Sentry Android SDK automates end-to-end error monitoring, tracing, session replay, profiling, and logging for production apps. It provides quick-start and verification steps to ensure immediate visibility of runtime issues in the Sentry dashboard.

How do I verify that Sentry tracing and session replay are working after setup?

Verifying Sentry tracing and session replay involves completing the quick-start initialization and checking the Sentry dashboard. The SDK provides explicit verification steps to confirm visibility of issues, traces, and replays.