[null,null,["最后更新时间 (UTC):2025-07-31。"],[],[],null,["# Analyze runtime errors with Logcat and Gemini\n\nGemini in Android Studio helps you understand and resolve errors from the\n[Logcat](/studio/debug/logcat) window, streamlining your debugging process. When\nyour app throws an error or exception, you can use the \"Ask Gemini\" feature to\nget immediate explanations and actionable suggestions without leaving the IDE.\n\n1. Run your app and monitor the Logcat\n\n window. When an exception or error occurs, Android Studio provides the stack\n trace.\n\n2. Click the \"Ask Gemini\" text that appears at the beginning of the stack trace.\n This action sends the relevant information to the Gemini agent for analysis.\n\n3. The **Gemini** tool window opens with a detailed response, which typically\n includes a summary of the error in plain language, potential causes, and\n suggested fixes."]]