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 always have all of the context about your issue (especially without visibility into your source code), AI assistance in Crashlytics will use Firebase's wealth of knowledge on mobile app development to recommend a few potential resolution paths whenever possible.
  • 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

AI assistance in Crashlytics doesn't use your crashes, its responses, or your feedback as data to train its model. For more information, see How Gemini in Google Cloud uses your data.

Required permissions

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

Here's how to assign the Cloud AI Companion 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 Cloud AI Companion 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 page 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.

  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

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 Cloud AI Companion API quotas that Gemini in Firebase uses.

You can view your current quotas on the Quotas page for the Cloud AI Companion API:

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

Cloud AI Companion 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.


AI assistance in Crashlytics is available as part of Gemini in Firebase for a promotional period. During this promotional period, you won't be charged for usage. The promotional period ends July 30, 2024. For more information, see Firebase pricing plans.