Firebase Crashlytics
Firebase (Google)OfficialCreated by Google LLCDistributed by Firebase (Google)
- Skill
- Tool integration
- Cloud and DevOps
- Apache-2.0
- Low risk
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides instructions for setting up Firebase Crashlytics in mobile applications to collect and report crash data. It covers the necessary prerequisites, SDK installation for Android and iOS, and configuration steps to ensure crash reports are properly symbolicated and sent to the Firebase console.
What it does
- Provides setup steps for Firebase Crashlytics on Android and iOS platforms.
- Explains how to add dependencies and plugins for crash reporting.
- Guides the configuration of dSYM upload scripts for iOS symbolication.
- Details how to customize crash reports with logs, keys, and user identifiers.
- Outlines the process for verifying crash reporting with a test crash.
- References Firebase CLI tools for managing project and app resources.
When to use it
- When you need to integrate crash reporting into a new Android or iOS application.
- When you need to configure native crash reporting for Android NDK projects.
- When you need to customize crash reports with additional debugging context.
- When you need to verify that crash reports are successfully reaching the Firebase console.
Advantages
- Centralized guidance for multi-platform mobile crash reporting.
- Includes specific instructions for handling native crashes on Android.
- Provides clear steps for verifying integration through test crashes.
- Integrates with standard Firebase CLI workflows for project management.
Usage examples
- “How do I set up Firebase Crashlytics in my Android project?”
- The agent provides the necessary Gradle plugin and dependency configurations, including instructions for fetching the latest versions from the Google Maven Repository.
- “What are the steps to configure Crashlytics for my iOS app?”
- The agent guides you through adding the Swift package, configuring the Run Script phase for dSYM uploads, and initializing Firebase in the application code.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/firebase/firebase-crashlytics/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip firebase-crashlytics.zip -d .agents/skills
Documentation by Google LLC
Crashlytics
This skill provides a complete guide for getting started with Crashlytics on Android or iOS. Crash data collected from client applications can be read using the MCP server in the Firebase CLI.
Prerequisites
Provisioning Crashlytics requires both a Firebase project and a Firebase app,
either Android or iOS. To read the data collected by Crashlytics, install the
MCP server in the Firebase CLI. See the firebase-basics skill for references.
SDK Setup
To learn how to setup Crashlytics in your application code, choose your platform:
Android: android_setup.md
iOS: ios_setup.md
SDK Usage
The SDK provides a number of features to make crash reports more actionable.
Add custom keys
Add custom logs
Set user identifiers
Report non-fatal exceptions
To learn how to customize crash reports and add additional debugging data, consult the documentation for your platform.
Files
- ATTRIBUTION.mdAdded by AutoGineer972 B
- LICENSELicence file added by AutoGineer11.1 KiB
- SKILL.md1.7 KiB
- references/android_setup.md6.6 KiB
- references/ios_setup.md4.5 KiB
references/android_setup.md
Firebase Crashlytics - Android Setup Guide (Kotlin)
This guide describes the SDK setup and basic usage patterns for Firebase
Crashlytics in an Android app using Kotlin DSL (build.gradle.kts) and Kotlin
code.
Prerequisites
IMPORTANT: Before specifically working with Firebase Crashlytics, make sure to
use the skill and reference firebase_basics/references/android_setup to ensure
the following is done.
The Firebase CLI is available and authenticated.
An Android project exists and is registered with a Firebase Project.
The Android project has a Firebase config file (
google-services.json) and the Google services Gradle plugin (google-services).
1. Add dependencies to Gradle build files
[!IMPORTANT] [AGENT] RESOLVING THE SDK & PLUGIN VERSIONS DETERMINISTICALLY Never guess or hardcode a memorized out-of-date SDK or plugin version. Before adding dependencies, you MUST query the latest available versions directly from the Google Maven Repository:
# Find the latest Firebase Android BoM version curl -s https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-bom/maven-metadata.xml | grep -oE '<latest>[^<]+' | cut -d'>' -f2 # Find the latest Crashlytics Gradle plugin version curl -s https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-crashlytics-gradle/maven-metadata.xml | grep -oE '<latest>[^<]+' | cut -d'>' -f2 # Find the latest firebase-crashlytics version curl -s https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-crashlytics/maven-metadata.xml | grep -oE '<latest>[^<]+' | cut -d'>' -f2 # Find the latest firebase-crashlytics-ndk version curl -s https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-crashlytics-ndk/maven-metadata.xml | grep -oE '<latest>[^<]+' | cut -d'>' -f2If the dependency is already declared, fetch the exact resolved version currently active in the workspace's build graph:
./gradlew -q :app:dependencyInsight --dependency firebase-crashlytics --configuration releaseRuntimeClasspath
These changes are made to the Android project's Gradle files.
Project-level build.gradle.kts (<project>/build.gradle.kts)
Add the latest version of the Crashlytics Gradle plugin to the plugins block:
plugins {
// ... other plugins
// [AGENT] Fetch the latest resolved version using the Gradle command above
id("com.google.firebase.crashlytics") version "<latest_plugin_version>" apply false
}Module (app-level) build.gradle.kts (<project>/<app-module>/build.gradle.kts)
Add the Crashlytics Gradle plugin to the
pluginsblock:plugins { // ... other plugins id("com.google.firebase.crashlytics") }Add the Firebase Crashlytics dependency to the
dependenciesblock:dependencies { // ... other dependencies // [AGENT] Fetch the latest resolved version using the Gradle command above implementation(platform("com.google.firebase:firebase-bom:<latest_bom_version>")) // Add the dependency for the Firebase Crashlytics library // When using the BoM, don't specify versions in Firebase library dependencies implementation("com.google.firebase:firebase-crashlytics") }
2. Optional: Install the NDK SDK to capture native crashes
If the Android project uses native code (C/C++), or includes a library with native code, configure Crashlytics to report native crashes.
App-level build.gradle.kts (<project>/<app-module>/build.gradle.kts)
Add the
firebase-crashlytics-ndkdependency:dependencies { // ... other dependencies // [AGENT] Fetch the latest resolved version using the Gradle command above implementation(platform("com.google.firebase:firebase-bom:<latest_bom_version>")) // Add the dependency for the Firebase Crashlytics NDK library // When using the BoM, don't specify versions in Firebase library dependencies implementation("com.google.firebase:firebase-crashlytics-ndk") }Enable the
nativeSymbolUploadflag in thebuildTypesconfiguration. This will automatically upload symbol files for the native code, which are required to symbolicate native crash reports.android { // ... other config buildTypes { getByName("release") { // ... firebaseCrashlytics { nativeSymbolUploadEnabled = true } } } }
After these changes, Crashlytics will automatically report crashes in the app's native code.
3. Required: Force a test crash
To verify that Crashlytics is correctly set up in the Android project, force a test crash in the app.
Add code to the main activity (e.g., in
onCreate) to trigger a crash a few seconds after app startup:import android.os.Handler import android.os.Looper // ... in the Activity's onCreate method or similar startup logic Handler(Looper.getMainLooper()).postDelayed({ throw RuntimeException("Test Crash") // Force a crash after 3 seconds }, 3000)Run the app on a device or emulator. The app should crash after a short delay.
Restart the app. The Crashlytics SDK will send the crash report to Firebase on the next app launch.
After a few minutes, the crash should be available in Firebase.
If the Firebase MCP server is installed, use the
get_reporttool to verify that a crash was received.As a fallback, tell the human user to go to the Crashlytics dashboard in the Firebase console to verify the new crash report. Provide the human user with a constructed Firebase console URL using the Firebase PROJECT_ID and the PACKAGE_NAME:
https://console.firebase.google.com/u/0/project/PROJECT_ID/crashlytics/app/android:PACKAGE_NAME/issues
After verifying that Firebase has received the crash report -- either using the
get_reporttool or manually viewing it in the Firebase console -- remove the code that triggers the test crash.
Optional additional steps
Add custom debugging information
Customize reports to help better understand what's happening in the app and the circumstances around events reported to Crashlytics. See https://firebase.google.com/docs/crashlytics/android/customize-crash-reports.md.txt.
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs an MCP server
The author says: This skill is best used with the Firebase CLI, but does not require it. Firebase CLI can be accessed through `npx -y firebase-tools@latest`.
Security
What our scanner noticed· Low risk
- Instructions that use the network
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- Google LLC
- Publisher
- Firebase (Google) (Official)
- Distributed by
- Firebase (Google)
- Source
- firebase/agent-skills · skills/firebase-crashlytics · commit b76be96
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Google LLC or Firebase (Google).
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download firebase-crashlytics.zip