---
id: gh-firebase-crashlytics
name: "firebase-crashlytics"
url: https://skills.yangsir.net/skill/gh-firebase-crashlytics
author: firebase
domain: mobile
tags: ["crashlytics", "firebase", "mobile", "debugging", "sdk"]
install_count: 21300
rating: 4.60 (120 reviews)
github: https://github.com/firebase/agent-skills/tree/main/skills/firebase-crashlytics
---

# firebase-crashlytics

> 本技能提供 Firebase Crashlytics 的全面指南，涵盖其配置、SDK 设置与使用。它帮助用户在 Android 或 iOS 应用中集成 Crashlytics，实现崩溃报告、自定义日志、用户标识和非致命异常报告，从而提升应用稳定性与调试效率。适用于需要设置 Crashlytics、添加崩溃报告或使用其 SDK 的开发者。

**Stats**: 21,300 installs · 4.6/5 (120 reviews)

## Before / After 对比

### 缩短崩溃调试时间

**Before**:

在没有自动化崩溃报告工具时，开发者需手动收集崩溃信息，重现问题，并耗费大量时间分析日志，导致修复周期长，用户体验受损。难以全面掌握应用崩溃情况。

**After**:

通过集成 Crashlytics，应用崩溃会自动上报详细上下文，开发者能迅速定位、优先处理并修复问题，大幅缩短调试时间，提升应用稳定性与用户满意度。

| Metric | Before | After | Change |
|---|---|---|---|
| 调试时间 | 8小时 | 1小时 | -87% |

## Readme

# 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](references/android_setup.md)
*   **iOS**: [ios_setup.md](references/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.

*   **Android**: [Customize Crash Reports for Android](https://firebase.google.com/docs/crashlytics/android/customize-crash-reports.md)
*   **iOS**: [Customize Crash Reports for Apple Platforms](https://firebase.google.com/docs/crashlytics/ios/customize-crash-reports.md)


---
*Source: https://skills.yangsir.net/skill/gh-firebase-crashlytics*
*Markdown mirror: https://skills.yangsir.net/api/skill/gh-firebase-crashlytics/markdown*