常见问题解答
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页列出了一些关于 Android Studio 中的 Gemini 及其运作方式的常见问题解答。如需更多资源,请参阅问题排查指南。如果您仍有疑问,请发送反馈。
Gemini 是否会将我的代码发送到 Google 的服务器?
如需了解分享哪些数据以及如何控制隐私设置,请访问数据与隐私权。
Gemini 给出的回答是否准确可靠?
使用生成式 AI 加速实现人们的想法真的非常令人振奋,但这项技术仍处于早期阶段,Gemini 只是一项实验。部分回答可能不准确,因此请仔细检查回答中的信息。在你的反馈帮助下,Gemini 正在不断改进。虽然 Gemini 具有符合 Google AI 原则的内置安全控件和清晰的反馈机制,但请注意,它可能会显示不准确的信息或令人反感的言论。
由于 AI 是一项不断发展的技术,因此它可能会生成看似合理但实际上不正确的输出。我们建议您先验证 Gemini 的所有输出,然后再使用。
我可以不分享上下文就访问 Gemini 吗?
可以。默认情况下,Gemini 无法查看编辑器窗口中的代码,只会使用聊天机器人中的提示和对话记录来生成回答。不过,您可以选择分享代码库中的上下文,以便获得更优质的回答并使用 AI 代码补全等实验性功能。
Gemini 可以提供编程方面的协助吗?
可以,Gemini 能提供编程及相关领域的协助。它仍处于实验阶段,您需自行承担使用代码或编码说明的责任。在使用任何代码之前,请谨慎判断并仔细测试其中是否存在错误、bug 和漏洞。
如何重置聊天记录?
Gemini 在回答提示时会使用对话记录来获取更多上下文信息。如果您的对话记录不再与您当前要实现的目标相关,请在 Gemini 窗格中点击清除对话记录
,重置对话记录。
为什么我会收到“代码已被屏蔽”错误消息?
Gemini 会对模型生成的回答进行多层检查。例如,有一项检查可确保模型生成的代码不会大量复制现有内容。您的回答可能因其中一项检查而被屏蔽。在这种情况下,请尝试使用其他提示重试。
Gemini 何时会在回答中引用信息来源?引用的方式是怎样的?
Gemini 应生成原创内容,而不是长篇大论地复制现有内容。我们对自己的系统进行了精心设计,以尽量避免发生这种情况,而且我们将继续改进这些系统的运作方式。如果 Gemini 确实直接从代码库中引用大段内容,则会注明引用来源。引用中还可能提及适用的开源许可。您须负责遵守所有许可要求。
我使用 Gemini 时需要遵循哪些服务条款?
使用 Gemini 时,你必须遵守《Google 服务条款》和《生成式 AI 附加服务条款》。
Gemini 与其他由 LLM 提供支持的聊天机器人有何不同?
Gemini 利用了旨在帮助处理编码场景的 LLM。Gemini 与 Android Studio 紧密集成,这意味着它可以提供更相关的回答,并且只需点击一下即可执行操作和应用建议。
有哪些使用 Gemini 的技巧?
- 提问时要简明扼要。
- 使用 Gemini 可以理解的简单语言。
- 如果 Gemini 无法理解您的问题,请尝试重新措辞。
- 在使用 Gemini 建议之前,请先查看这些建议。
如需了解详情,请参阅最佳实践。
如何针对 Gemini 报告反馈?
我们希望您提供反馈,帮助我们改进 Gemini 在所有 Android 开发领域中的回答。为了帮助我们改进 Gemini,请在开发工作流程中使用 Gemini,并使用 Gemini 界面中的“我喜欢”和“不喜欢”选项将 Gemini 的回答标记为“实用”或“不实用”。这些反馈有助于我们确定需要加强培训的方面。
如何针对特定 AI 回答提供反馈?
为帮助我们不断改进,请用“我喜欢”或“不喜欢”来对生成的内容评分。
如果您认为 AI 回答不安全、没用、不准确,或因任何其他原因而认为回答得不好,请使用选择“不喜欢”时显示的提供反馈选项提交反馈,告知我们。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-31。
[null,null,["最后更新时间 (UTC):2025-07-31。"],[],[],null,["# FAQ\n\nThis page lists some frequently asked questions about Gemini in Android Studio\nand how it works. For more resources, see the [troubleshooting guide](/studio/gemini/troubleshooting). If\nyou still have questions, [send feedback](/studio/report-bugs).\n\nDoes Gemini send my code to Google's servers?\n---------------------------------------------\n\nLearn about what data is shared and how you can control your privacy settings at\n[Data and privacy](/studio/gemini/data-and-privacy).\n\nDoes Gemini give accurate and safe responses?\n---------------------------------------------\n\nAccelerating people's ideas with generative AI is truly exciting, but it's still\nearly days, and Gemini is an experiment. Some of the responses might be\ninaccurate, so double-check information in the responses. With your feedback,\nGemini is improving. While Gemini has built-in safety controls and clear\nmechanisms for feedback in line with our\n[AI Principles](/studio/gemini/data-and-privacy), be aware that it might display\ninaccurate information or offensive statements.\n\nBecause AI is an evolving technology, it can generate output that sounds\nplausible but is factually incorrect. We recommend that you validate all output\nfrom Gemini before you use it.\n\nCan I access Gemini without sharing context?\n--------------------------------------------\n\nYes. By default, Gemini can't see the code in the editor window and only uses\nthe prompts and conversation history in the chatbot to respond. However, you can\nopt in to sharing context from your codebase to enable higher quality responses\nand access to experimental features such as AI code completion.\n\nCan Gemini help with coding?\n----------------------------\n\nYes, Gemini can help with coding and topics about coding. It is experimental\nand you are responsible for your use of code or coding explanations. Use\ndiscretion and carefully test all code for errors, bugs, and vulnerabilities\nbefore relying on it.\n\nHow can I reset chat history?\n-----------------------------\n\nGemini uses the chat history for additional context when responding to your\nprompts. If your chat history is no longer relevant to what you're currently\ntrying to achieve, reset the chat history by clicking\n**Clear Conversation History**\nin the Gemini pane.\n\nWhy do I get a \"code is blocked\" error message?\n-----------------------------------------------\n\nGemini conducts multiple layers of checks on model-generated responses. For\nexample, there's a check to ensure that the model-generated code doesn't\nreplicate existing content at length. It's possible that your response gets\nblocked due to one of these checks. In this case, try again with a different\nprompt.\n\nHow and when does Gemini cite sources in its responses?\n-------------------------------------------------------\n\nGemini should generate original content and not replicate existing content\nat length. We've designed our systems to limit the chances of this occurring,\nand we will continue to improve how these systems function. If Gemini does\ndirectly quote at length from a code repository, it cites that source. The\ncitation might also reference an applicable open source license. It is your\nresponsibility to comply with any license requirements.\n\nWhat terms of service apply to my Gemini usage?\n-----------------------------------------------\n\nYour use of Gemini is subject to the [Google Terms of Service](https://policies.google.com/terms)\nand the [Generative AI Additional Terms of Service](https://policies.google.com/terms/generative-ai).\n\nHow is Gemini different from other LLM-powered chatbots?\n--------------------------------------------------------\n\nGemini leverages an LLM that was designed to help with coding scenarios. Gemini\nis tightly integrated within Android Studio, which means it can provide more\nrelevant responses, and lets you to take actions and apply suggestions with just\na click.\n\nWhat are some tips for using Gemini?\n------------------------------------\n\n- Be clear and concise when you ask your question.\n- Use simple language that Gemini can understand.\n- If Gemini does not understand your question, try rephrasing it.\n- Review Gemini suggestions before using them.\n\nFor more details, see [Best practices](/studio/gemini/best-practices).\n\nHow can I report feedback about Gemini?\n---------------------------------------\n\nWe're looking for your feedback to help us improve Gemini responses across\nall of the domains of Android development. To help, use Gemini in your\ndevelopment workflow and mark its responses as helpful or not helpful using the\nthumbs up and thumbs down options in the Gemini UI. This input helps us identify\nthe areas that need more training.\n\nHow can I give feedback about a specific AI response?\n-----------------------------------------------------\n\nTo help us improve, rate the generated output with a thumbs up or thumbs down.\nIf you get an AI response that you feel is unsafe, not helpful, inaccurate, or\nbad for any other reason, let us know by submitting feedback using the\n**Provide Feedback** option that appears when you select thumbs down."]]