[null,null,["最后更新时间 (UTC):2025-07-31。"],[],[],null,["# Analyze crashes with App Quality Insights and Gemini\n\nUse Gemini in Android Studio to analyze your [App Quality Insights](/studio/debug/app-quality-insights) crash\nreports, generate insights, provide a crash summary, and (when possible)\nrecommend next steps, including sample code and links to relevant documentation.\n\nGenerate all of this information by clicking **Insights** in the **App Quality\nInsights** tool window in Android Studio after you [enable Gemini](/studio/gemini/get-started).\n\nFor example, when we click **Insights** in the **App Quality Insights** tool\nwindow for the depicted sample app and click the most common type of error,\nGemini tells us that the app crashed due to a `java.lang` NullPointerException.\nIt locates the file where the crash originated, shows the relevant code\nsnippet, and walks through why the crash occurred step by step.\n\nTo fix the code that is causing the crash, click **Suggest a fix** and a code\ndiff opens with Gemini's proposed code changes. You can further refine the\nprompt that produced the suggested code changes or edit the code yourself\nbefore accepting the changes."]]