Android 스튜디오의 Gemini를 사용하여 App Quality Insights 비정상 종료 보고서를 분석하고, 유용한 정보를 생성하고, 비정상 종료 요약을 제공하고, 가능한 경우 샘플 코드 및 관련 문서 링크를 포함한 다음 단계를 추천합니다.
Gemini를 사용 설정한 후 Android 스튜디오의 App Quality Insights 도구 창에서 Insights를 클릭하여 이 모든 정보를 생성합니다.
예를 들어 묘사된 샘플 앱의 App Quality Insights 도구 창에서 Insights를 클릭하고 가장 일반적인 오류 유형을 클릭하면 Gemini는 java.lang NullPointerException으로 인해 앱이 비정상 종료되었다고 알려줍니다.
비정상 종료가 시작된 파일을 찾아 관련 코드 스니펫을 표시하고 비정상 종료가 발생한 이유를 단계별로 안내합니다.
비정상 종료를 일으키는 코드를 수정하려면 수정 제안을 클릭합니다. 그러면 Gemini가 제안한 코드 변경사항이 포함된 코드 차이가 열립니다. 변경사항을 수락하기 전에 추천 코드 변경사항을 생성한 프롬프트를 추가로 수정하거나 코드를 직접 수정할 수 있습니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 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 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."]]