Để chạy Gemini, hãy mở hoặc bắt đầu một dự án Android Studio rồi nhấp vào Gemini.
Hoặc nhấp vào View > Tool Windows > Gemini (Xem > Cửa sổ công cụ > Gemini).
Đăng nhập vào Tài khoản Google của bạn khi được yêu cầu, nếu bạn chưa đăng nhập.
Hoàn tất quy trình giới thiệu.
Chọn Gemini cho cá nhân khi được chọn cấp sản phẩm.
Để có kết quả tốt nhất, hãy chọn Sử dụng tất cả các tính năng của Gemini để cho phép chia sẻ ngữ cảnh dự án. Theo mặc định, chế độ cài đặt này áp dụng cho tất cả dự án mà bạn sử dụng Gemini. Để cập nhật chế độ cài đặt hoặc yêu cầu định cấu hình tính năng chia sẻ bối cảnh theo từng dự án, hãy chuyển đến phần Chế độ cài đặt Gemini.
Sau khi hoàn tất các bước này, hộp trò chuyện sẽ xuất hiện và bạn có thể bắt đầu sử dụng Gemini. Bất cứ lúc nào, bạn cũng có thể nhanh chóng kiểm tra xem Gemini có được bật hay không bằng cách kiểm tra biểu tượng Gemini ở cuối IDE Studio:
Nếu Gemini đang bật, bạn sẽ thấy biểu tượng Gemini: Đang hoạt động.
Nếu Gemini bị tắt (rất có thể là do bạn đã đăng xuất), bạn sẽ thấy biểu tượng Gemini: Không hoạt động.
Bạn cũng có thể nhấp vào biểu tượng này để chuyển nhanh đến phần cài đặt của Gemini.
Khám phá các hướng dẫn để tìm hiểu thêm về các tính năng của Gemini.
Duyệt xem Thư viện câu lệnh để tìm ý tưởng về những điều cần hỏi Gemini.
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-07-31 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-31 UTC."],[],[],null,["# Get started with Gemini in Android Studio\n\nTo get started with Gemini in Android Studio, follow these steps:\n\n1. [Download Android Studio](/studio). Note that some features are under active development and only available through [Studio Labs](/studio/gemini/labs) or a [preview version of Android Studio](/studio/preview). See [Features](/studio/gemini/features) to check what version of Android Studio you need for the features you're interested in using.\n2. To launch Gemini, open or start an Android Studio project and click **Gemini** . Alternatively, click **View \\\u003e Tool Windows \\\u003e Gemini**.\n3. Sign in to your Google Account when asked, if you aren't already signed in.\n4. Complete the onboarding flow.\n 1. Select **Gemini for individuals** when given the choice of product tier.\n 2. For the best results, select **Use all Gemini features** to allow project context sharing. By default, this setting applies to all projects that you use Gemini for. To update the setting or request to configure context sharing on a per project basis, go to the [Gemini settings](/studio/gemini/configure-gemini).\n\nAfter completing these steps, the chat box appears and you can start using\nGemini. At any time, you can quickly check whether Gemini is enabled by checking\nthe Gemini icon at the bottom of the Studio IDE:\n\n- If Gemini is enabled, you should see **Gemini: Active** .\n- If Gemini is disabled, most likely because you're signed out, you should see **Gemini: Inactive** .\n\nYou can also click on the icon to shortcut to\n[Gemini's settings](/studio/gemini/configure-gemini).\n\nNext steps\n----------\n\n- See the [best practices](/studio/gemini/best-practices) for tips on how to use Gemini.\n- Explore the [guides](/studio/gemini/chat) to learn more about Gemini's features.\n- Browse the [Prompt Gallery](/studio/gemini/prompt-gallery) for inspiration for what to ask Gemini."]]