问题排查
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如果您在 Android Studio 中遇到 Gemini 相关问题,请按照本页中的问题排查步骤操作,了解如何解决问题并从 Gemini 获得更好的回答。
其他资源:
- 查看已知问题,了解 Android Studio 团队是否已知道您遇到的问题。
- 如果问题仍然存在,请考虑提交 bug。
无法使用任何 Gemini 功能
如果您在 Android Studio 中无法使用任何 Gemini 功能,请检查以下各项:
回答质量低
如果您发现 Gemini 的回答不如预期那么实用,请尝试以下操作:
- 通过将文件附加到查询中,帮助 Gemini 更好地了解您的问题的上下文,并确定需要更新的文件。
- 如果您使用的是 Gemini 的标准聊天功能,请尝试代理模式。代理模式可以处理涉及多个文件的任务,其功能远超单纯的聊天模式。
- 如果您已在使用代理模式,请添加 API 密钥来扩大上下文窗口。
- 不妨考虑升级到企业版方案,该方案默认包含 Gemini 2.5 Pro 模型,可让您自定义回答,以更好地满足团队需求。如需了解详情,请参阅功能比较。
回答未采用我们团队的风格指南或政策
为了帮助 Gemini 更好地了解您团队的实践,例如编码风格指南或第三方库偏好设置,请创建规则,以便 Gemini 在回答您的提示时考虑这些规则。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-31。
[[["易于理解","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"]],["最后更新时间 (UTC):2025-07-31。"],[],[],null,["# Troubleshooting\n\nIf you encounter an issue with Gemini in Android Studio, go through the\ntroubleshooting steps on this page for ideas on how to fix the issue and get\nbetter responses from Gemini.\n\nOther resources:\n\n- Check the [known issues](/studio/known-issues) to see if an issue that the Android Studio team is already aware of.\n- If the issue persists, consider [filing a bug](/studio/report-bugs).\n\nCan't access any Gemini features\n--------------------------------\n\nIf you're in Android Studio and don't have access to any Gemini features,\ncheck the following:\n\n- The Android Studio version you're using supports Gemini. For the most reliable experience, download the [latest stable version of Android Studio](/studio). Be aware of the [Android Studio and Cloud services compatibility policy](/studio/releases#service-compat).\n- You are [logged in to Android Studio](/studio/intro#sign-in).\n\nResponses are low quality\n-------------------------\n\nIf you find that Gemini's responses aren't as helpful as you'd expect, try the\nfollowing:\n\n- Help Gemini better understand the context for your question and identify the files that need to be updated by [attaching files to your query](/studio/gemini/attach-file).\n- If you're using Gemini's standard chat feature, try [agent mode](/studio/gemini/agent-mode). Agent mode can tackle tasks that involve multiple files and goes beyond what chat alone can do.\n- If you're already using agent mode, expand the context window by [adding an API key](/studio/gemini/add-api-key).\n- Consider upgrading to the [business tier](/studio/gemini/get-started-businesses), which includes the Gemini 2.5 Pro model by default and lets you customize responses to better suit your team needs. For more information, see [Feature comparison](/studio/gemini/feature-comparison).\n\nResponses don't incorporate our team's style guide or policies\n--------------------------------------------------------------\n\nTo help Gemini better understand your team's practices, such as a coding style\nguide or third party library preferences, create [rules](/studio/gemini/rules)\nfor Gemini to take into account when responding to your prompts."]]