קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
Gemini ב-Android Studio עוזר לכם להבין ולפתור שגיאות מהחלון Logcat, וכך מייעל את תהליך הניפוי של הבאגים. כשהאפליקציה שלכם מחזירה שגיאה או חריגה, אתם יכולים להשתמש בתכונה 'שאלת Gemini' כדי לקבל הסברים מיידיים והצעות מעשיות בלי לצאת מה-IDE.
מריצים את האפליקציה ועוקבים אחרי החלון Logcat
. כשמתרחשת חריגה או שגיאה, Android Studio מספק את מעקב המחסנית.
לוחצים על הטקסט 'יש לך שאלה ל-Gemini?' שמופיע בתחילת ה-stack trace.
הפעולה הזו שולחת את המידע הרלוונטי לסוכן Gemini לצורך ניתוח.
חלון הכלים של Gemini נפתח עם תשובה מפורטת, שבדרך כלל כוללת סיכום של השגיאה בשפה פשוטה, סיבות אפשריות והצעות לתיקון.
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-31 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-07-31 (שעון UTC)."],[],[],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."]]