Get AI assistance in Crashlytics

Use AI assistance in Crashlytics provided by Gemini in Firebase to help speed up the time it takes for you to understand why a crash happened and what to do about it. AI assistance in Crashlytics identifies root causes, delivers actionable insights and tailored solutions, and recommends best practices going forward.

AI assistance in Crashlytics can provide you with the following insights:

  • Summary/Cause: A concise but information-rich explanation of what happened to the user and what caused the issue.
  • Debugging options: Gemini will offer a few potential ways to either reproduce the error or will provide next steps to further debug the issue to identify a root cause. Gemini can provide recommended commands to try or code to use (with caution).
  • Actionable next steps: While Gemini won't initially have all of the context about your issue, AI assistance in Crashlytics will use Firebase's wealth of knowledge on mobile app development to recommend a few potential resolution paths whenever possible and provide you with the ability to add additional context and source code to get more in-depth insights.
  • Best Practices: Part of the triage process is, ideally, future-proofing your app so these types of issues don't recur. Gemini references thousands of pages of Firebase documentation and more) to provide you with possible approaches to resolve the issue.

How AI assistance in Crashlytics uses your data

See How Gemini in Firebase uses your data for more information about how Gemini in Firebase uses your data.

Required permissions

To enable and use features of Gemini in Firebase requires certain IAM roles and permissions.

  • Project members with the owner or editor IAM role can enable Gemini in Firebase and use its features.
  • Project viewers cannot enable Gemini in Firebase, but they can use its features, including Gemini in Firebase chat, help, and AI assistance in Crashlytics if they are assigned the Gemini for Google Cloud User role.
  • If the project is part of Google Workspace (formerly G Suite), a Google Workspace administrator must enable it.

Here's how to assign the Gemini for Google Cloud User role to a project member. Note that only project owners can edit IAM roles.

  1. From the Firebase console, select Project settings, then select Users and permissions.
  2. Find the row for the applicable project member.
  3. Click More options, then select Edit access.
  4. Expand Role(s), select Gemini for Google Cloud User, then click Done.
  5. Click Update roles to save the change. It may take a minute or two for the new role to apply to your user.

Set up AI assistance in Crashlytics

To set up AI assistance in Crashlytics, enable Gemini in Firebase as described in Set up Gemini in Firebase, then proceed to Generate insights.

Generate insights

To use AI assistance in Crashlytics to generate insights about your crashes:

  1. Open the Crashlytics dashboard in your project and select your app.

  2. Locate and select a crash you want to investigate. The Crashlytics event page appears, providing a Generate AI insights button.

    If you don't see a Generate AI insights button, verify that Gemini in Firebase has been enabled (for setup instructions, see Set up Gemini in Firebase). Also, make sure that you're viewing an Apple or Android event. Flutter, Unity, and Android NDK events and non-fatal events are not yet supported. And finally, ensure that the Insights section is expanded in the Crashlytics event page.

  3. Click the Generate AI insights button.

    Insights appear, with one or more of the following:

    • an analysis of the crash with a possible cause
    • debugging instructions
    • actionable next steps
    • best practices
  4. If you want to provide code and context to obtain deeper insights, click Get started in the Want deeper insights? box.

  5. Paste the code that Gemini in Firebase requests into the code field.

  6. If you have more context or additional details to share that might help improve AI insights, add it to the Share any context or relevant details field.

  7. Click Regenerate AI insights.

    Gemini in Firebase generates updated insights based on your provided code and context.

Troubleshoot AI assistance in Crashlytics

Refer to Troubleshoot Gemini in Firebase.

Quotas and pricing

This section describes the quotas and pricing structure for AI assistance in Crashlytics.

Quotas and limits

AI assistance in Crashlytics quotas are included as part of the Gemini for Google Cloud API quotas that Gemini in Firebase uses.

You can view your current quotas on the Quotas page for the Gemini for Google Cloud API:

  1. From the Google Cloud console, select Enabled APIs & services.
  2. Search for, then click Gemini for Google Cloud API.
  3. Click Quotas & system limits.

Gemini for Google Cloud API quotas appear. AI assistance in Crashlytics uses the "Chat API requests per day per user" quota.

To request a quota increase:

  1. Select the quota you want to increase, and click Edit request.
  2. Update the New value text field with the quota you'd like to request, then click Submit. The Google Cloud team will evaluate your request and respond by email.

Pricing

AI assistance in Crashlytics is available as part of Gemini in Firebase, which is included at no-cost or as part of Gemini Code Assist. See Gemini in Firebase pricing for more information.