Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Sử dụng tính năng hỗ trợ của AI trong Crashlytics do Gemini trong Firebase cung cấp để giúp bạn nhanh chóng hiểu được lý do xảy ra sự cố và cách xử lý. Tính năng hỗ trợ AI trong Crashlytics xác định nguyên nhân cốt lõi, cung cấp thông tin chi tiết hữu ích và các giải pháp phù hợp, đồng thời đề xuất các phương pháp hay nhất trong tương lai.
Tính năng hỗ trợ của AI trong Crashlytics có thể cung cấp cho bạn những thông tin chi tiết sau:
Tóm tắt/Nguyên nhân: Phần giải thích ngắn gọn nhưng giàu thông tin về những gì đã xảy ra với người dùng và nguyên nhân gây ra vấn đề.
Các lựa chọn gỡ lỗi: Gemini sẽ đề xuất một số cách có thể để tái hiện lỗi hoặc cung cấp các bước tiếp theo để gỡ lỗi thêm nhằm xác định nguyên nhân gốc.
Gemini có thể cung cấp các lệnh được đề xuất để bạn dùng thử hoặc mã để sử dụng (một cách thận trọng).
Các bước tiếp theo có thể thực hiện: Mặc dù ban đầu Gemini sẽ không có tất cả ngữ cảnh về vấn đề của bạn, nhưng tính năng hỗ trợ AI trong Crashlytics sẽ sử dụng kiến thức phong phú của Firebase về việc phát triển ứng dụng di động để đề xuất một số cách giải quyết tiềm năng (nếu có thể) và cho phép bạn thêm ngữ cảnh cũng như mã nguồn bổ sung để nhận được thông tin chi tiết hơn.
Các phương pháp hay nhất: Một phần của quy trình phân loại là lý tưởng nhất, giúp ứng dụng của bạn có khả năng thích ứng với các thay đổi trong tương lai để những loại vấn đề này không tái diễn.
Gemini tham khảo hàng nghìn trang tài liệu về Firebase (và nhiều tài liệu khác) để cung cấp cho bạn các phương pháp có thể áp dụng để giải quyết vấn đề.
Cách tính năng hỗ trợ bằng AI trong Crashlytics sử dụng dữ liệu của bạn
Người xem dự án không thể bật Gemini trong Firebase, nhưng họ có thể sử dụng các tính năng của Gemini, bao gồm Gemini trong Firebase chat, trợ giúp và hỗ trợ của AI trong Crashlyticsnếu được chỉ định Gemini for Google Cloud vai trò Người dùng.
Nếu dự án thuộc Google Workspace (trước đây là G Suite), thì quản trị viên Google Workspace phải bật dự án đó.
Sau đây là cách chỉ định vai trò Gemini for Google Cloud Người dùng cho một thành viên dự án. Xin lưu ý rằng chỉ chủ sở hữu dự án mới có thể chỉnh sửa vai trò IAM.
Trên bảng điều khiển Firebase, hãy chọn settingsCài đặt dự án, sau đó chọn Người dùng và quyền.
Tìm hàng chứa thành viên dự án có liên quan.
Nhấp vào biểu tượng more_vertTuỳ chọn khác, rồi chọn Chỉnh sửa quyền truy cập.
Mở rộng Vai trò, chọn Gemini for Google Cloud Người dùng, rồi nhấp vào Xong.
Nhấp vào Cập nhật vai trò để lưu thay đổi. Có thể mất một hoặc hai phút để vai trò mới được áp dụng cho người dùng.
Tìm và chọn một sự cố mà bạn muốn điều tra. Trang sự kiện Crashlytics sẽ xuất hiện, bao gồm thông tin chi tiết về một hoặc nhiều nội dung sau:
phân tích sự cố kèm theo nguyên nhân có thể gây ra sự cố
hướng dẫn gỡ lỗi
các bước tiếp theo có thể thực hiện
các phương pháp hay nhất
Nếu bạn không thấy tính năng hỗ trợ của AI trong Crashlytics ở đầu trang sự kiện, hãy xác minh rằng bạn đã bật Gemini trong Firebase (xem phần Thiết lập Gemini trong Firebase để biết hướng dẫn thiết lập). Ngoài ra, hãy đảm bảo rằng bạn đang xem một sự kiện gặp sự cố hoặc ANR. Các sự kiện không nghiêm trọng hiện chưa được hỗ trợ.
Nếu bạn muốn cung cấp mã và bối cảnh để nhận được thông tin chi tiết hơn, hãy nhấp vào Bắt đầu trong hộp Bạn muốn biết thông tin chi tiết hơn?
Dán mã mà Gemini trong Firebase yêu cầu vào trường mã.
Nếu bạn có thêm bối cảnh hoặc thông tin chi tiết khác có thể giúp cải thiện thông tin chi tiết do AI cung cấp, hãy thêm thông tin đó vào trường Chia sẻ mọi bối cảnh hoặc thông tin chi tiết có liên quan.
Nhấp vào Tạo lại thông tin chi tiết bằng AI.
Gemini trong Firebase tạo thông tin chi tiết mới dựa trên mã và bối cảnh mà bạn cung cấp.
Trên Google Cloudconsole (bảng điều khiển), hãy chọn Enabled APIs & services (API và dịch vụ đã bật).
Tìm kiếm rồi nhấp vào biểu tượng Gemini for Google Cloud API.
Nhấp vào Hạn mức và giới hạn hệ thống.
Hạn mức Gemini for Google Cloud API sẽ xuất hiện. Tính năng hỗ trợ bằng AI trong Crashlytics sử dụng hạn mức "Số yêu cầu Chat API mỗi ngày cho mỗi người dùng".
Cập nhật trường văn bản Giá trị mới bằng hạn mức mà bạn muốn yêu cầu, sau đó nhấp vào Gửi. Nhóm Google Cloud sẽ đánh giá yêu cầu của bạn và phản hồi qua email.
Giá
Tính năng hỗ trợ của AI trong Crashlytics là một phần của Gemini trong Firebase. Người dùng cá nhân có thể sử dụng tính năng này miễn phí hoặc thông qua gói thuê bao Gemini Code Assist.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-09-03 UTC."],[],[],null,["\u003cbr /\u003e\n\nUse AI assistance in Crashlytics provided by\n[Gemini in Firebase](/docs/gemini-in-firebase) to help speed up the\ntime it takes for you to understand why a crash happened and what to do\nabout it. AI assistance in Crashlytics identifies root causes, delivers\nactionable insights and tailored solutions, and recommends best practices going\nforward.\n\nAI assistance in Crashlytics can provide you with the following insights:\n\n- **Summary/Cause**: A concise but information-rich explanation of what happened to the user and what caused the issue.\n- **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](https://support.google.com/legal/answer/13505487)).\n- **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.\n- **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.\n\n| **Note:** AI assistance in Crashlytics is available for crashes and ANRs. It is not yet available for non-fatal events.\n\nHow AI assistance in Crashlytics uses your data\n\nSee [How Gemini in Firebase uses your\ndata](/docs/gemini-in-firebase#how-gemini-in-firebase-uses-your-data) for more\ninformation about how Gemini in Firebase uses your data.\n\nRequired permissions\n\nTo enable and use features of Gemini in Firebase requires certain IAM roles\nand permissions.\n\n- Project members with the [owner or editor IAM role](/docs/projects/iam/roles-basic) can enable Gemini in Firebase and use its features.\n- Project viewers cannot enable Gemini in Firebase, but they can use its features, including [Gemini in Firebase chat](/docs/gemini-in-firebase/try-gemini), help, and [AI assistance in Crashlytics](/docs/crashlytics/ai-assistance) *if they are assigned the Gemini for Google Cloud User role*.\n- **If the project is part of Google Workspace (formerly G Suite)**, a Google Workspace administrator must enable it.\n\nHere's how to assign the Gemini for Google Cloud User role to a project\nmember. Note that only project owners can edit IAM roles.\n\n1. From the Firebase console, select settings [**Project settings**](//console.firebase.google.com/project/_/settings/general/), then select **Users and permissions**.\n2. Find the row for the applicable project member.\n3. Click more_vert **More options** , then select **Edit access.**\n4. Expand **Role(s)** , select **Gemini for Google Cloud User** , then click **Done**.\n5. Click **Update roles** to save the change. It may take a minute or two for the new role to apply to your user.\n\n| **Note:** If using Gemini in Firebase with a Gemini Code Assist subscription, a license must be assigned to each user. Learn more at [Assign Gemini Code Assist\n| licenses](/docs/gemini-in-firebase/set-up-gemini#assign-code-assist-licenses).\n\nSet up AI assistance in Crashlytics\n\nTo set up AI assistance in Crashlytics, enable Gemini in Firebase as\ndescribed in [Set up\nGemini in Firebase](/docs/gemini-in-firebase/set-up-gemini), then\nproceed to [Generate insights](#generate-insights).\n\nGenerate insights\n\nTo use AI assistance in Crashlytics to generate insights about your crashes:\n\n1. Open the [Crashlytics\n dashboard](https://console.firebase.google.com/project/_/crashlytics) in\n your project and select your app.\n\n2. Locate and select a crash you want to investigate. The Crashlytics event\n page appears, including insights with one or more of the following:\n\n - an analysis of the crash with a possible cause\n - debugging instructions\n - actionable next steps\n - best practices\n\n If you don't see the AI assistance in Crashlytics feature at the top of the\n event page, verify that Gemini in Firebase has been enabled (for setup\n instructions, see\n [Set up Gemini in Firebase](/docs/gemini-in-firebase/set-up-gemini)).\n Also, make sure that you're viewing a crash or ANR event. Non-fatal events\n are not yet supported.\n3. If you want to provide code and context to obtain deeper insights, click\n **Get started** in the **Want deeper insights?** box.\n\n4. Paste the code that Gemini in Firebase requests into the code field.\n\n5. If you have more context or additional details to share that might help\n improve AI insights, add it to the **Share any context or relevant\n details** field.\n\n6. Click **Regenerate AI insights**.\n\n Gemini in Firebase generates updated insights based on your\n provided code and context.\n\n \u003cbr /\u003e\n\n| **Important:** AI assistance in Crashlytics is an early-stage technology that can generate output that seems plausible but is factually incorrect. It may respond with inaccurate information that doesn't represent Google's views. Validate all output from Gemini before you use it and do not use untested generated code in production. Do not log personally-identifiable information (PII) through Crashlytics APIs. For more information, see [How\n| AI assistance in Crashlytics uses your\n| data](/docs/crashlytics/ai-assistance#governance) and [Gemini in Google Cloud and responsible\n| AI](https://cloud.google.com/duet-ai/docs/discover/responsible-ai).\n\nTroubleshoot AI assistance in Crashlytics\n\nRefer to [Troubleshoot\nGemini in Firebase](/docs/gemini-in-firebase/set-up-gemini#troubleshoot-gemini-in-firebase).\n\nQuotas and pricing\n\nThis section describes the quotas and pricing structure for\nAI assistance in Crashlytics.\n\nQuotas and limits\n\nAI assistance in Crashlytics quotas are included as part of the\nGemini for Google Cloud API quotas that Gemini in Firebase uses.\n\nYou can view your current quotas on the\n[Quotas page for the Gemini for Google Cloud API](https://console.cloud.google.com/apis/api/cloudaicompanion.googleapis.com/quotas?project=_):\n\n1. From the [Google Cloud console](https://console.cloud.google.com), select **Enabled APIs \\& services**.\n2. Search for, then click **Gemini for Google Cloud API**.\n3. Click **Quotas \\& system limits**.\n\nGemini for Google Cloud API quotas appear. AI assistance in Crashlytics uses the\n\"Chat API requests per day per user\" quota.\n\nTo request a quota increase:\n\n1. Select the quota you want to increase, and click **Edit request**.\n2. 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.\n\nPricing\n\nAI assistance in Crashlytics is available as part of Gemini in Firebase,\nwhich is included for individual users at no-cost or with a\nGemini Code Assist subscription.\n\nSee [Gemini in Firebase pricing](/docs/gemini-in-firebase#pricing) for more\ninformation."]]