Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Gemini trong Android Studio là bạn đồng hành lập trình dựa trên AI giúp bạn phát triển cho Android. Công cụ này giúp bạn làm việc hiệu quả hơn bằng cách trả lời các câu hỏi về quá trình phát triển, tạo mã, tìm tài nguyên phù hợp và khuyến khích các phương pháp hay nhất. Quan trọng nhất là Gemini trong Android Studio được trang bị các tính năng độc đáo để đẩy nhanh quá trình phát triển cho Android. Gemini có thể giúp bạn mô phỏng và khắc phục sự cố về giao diện người dùng Compose, sửa lỗi bản dựng Gradle, phân tích sự cố thông qua việc tích hợp với Logcat và App Quality Insights, v.v.
Gemini trong Android Studio có trong các phiên bản sau:
Nếu là một nhà phát triển tự do, sinh viên hoặc người theo đuổi sở thích cá nhân, bạn nên sử dụng Gemini trong Android Studio mà không mất phí. Trong đó có quyền truy cập vào phiên bản rút gọn của Gemini 2.5 Pro với cửa sổ ngữ cảnh nhỏ hơn, phù hợp với hầu hết mọi nhiệm vụ. Nếu cần thực hiện các tác vụ phức tạp hơn và có thể hưởng lợi từ cửa sổ ngữ cảnh 1 triệu token của Gemini 2.5 Pro, bạn có thể thêm khoá Gemini API và trả phí theo số token.
Nếu bạn là một nhà phát triển chuyên nghiệp làm việc theo nhóm, hãy yêu cầu quản trị viên của bạn cân nhắc đăng ký gói doanh nghiệp. Gemini cho doanh nghiệp có thêm các tính năng giúp bạn dễ dàng cộng tác với đồng nghiệp trong khi vẫn tuân thủ các phương pháp hay nhất và tiêu chuẩn của công ty, bao gồm nhưng không giới hạn ở:
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,["# Gemini in Android Studio\n\n| **Note:** Gemini in Android Studio is only available in the current stable channel version of Android Studio, the three most recent previous major versions, and patches associated with those versions. If you are using an older version of Android Studio, you will need to update to use Gemini. [More\n| information](/studio/releases#service-compat).\n\nGemini in Android Studio is your AI-powered coding companion for Android\ndevelopment. It helps you be more productive by answering your development\nqueries, generating code, finding relevant resources, and encouraging best\npractices. Most importantly, Gemini in Android Studio is uniquely equipped to\naccelerate Android development---it can help you mock up and troubleshoot Compose\nUIs, fix Gradle build errors, analyze crashes through integrations with Logcat\nand App Quality Insights, and more. \n\nGemini in Android Studio is available in the following editions:\n\n- [No-cost tier](/studio/gemini/get-started)\n- [Business tier](/studio/gemini/get-started-businesses), available through a subscription to [Gemini Code Assist](https://developers.google.com/gemini-code-assist/docs/overview) or membership in the [Google Developer Program](https://developers.google.com/program).\n - Standard tier\n - Enterprise tier\n\n### What is the right tier for me?\n\nIf you're an individual freelance developer, student, or hobbyist we recommend\nusing [Gemini in Android Studio](/studio/gemini/get-started), available at no\ncost. This includes access to a lightweight version of Gemini 2.5 Pro with a\nsmaller context window, which is appropriate for most every tasks. If you need\nto execute more complex tasks that would benefit from Gemini 2.5 Pro's full 1M\ntoken context window, you can [add a Gemini API key](/studio/gemini/add-api-key)\nand pay per-token.\n\nIf you're a professional developer who works as part of a team, ask your\nadministrator to consider subscribing to the [business tier](/studio/gemini/get-started-businesses). Gemini for\nbusinesses includes additional features that make it easier to collaborate with\nyour teammates while incorporating your company's best practices and standards,\nincluding but not limited to:\n\n- Expanded 1M token context window\n- [IP indemnification](https://cloud.google.com/gemini/docs/discover/works#how-gemini-protects)\n- [VPC-SC and Private Google Access](https://developers.google.com/gemini-code-assist/docs/configure-vpc-service-controls)\n- Integration with tools such as Firebase, Colab Enterprise, BigQuery data insights, Cloud Run, and Database Studio.\n- Analytics to track your team's usage and productivity impact.\n- (Enterprise tier only) Customized code suggestions from your codebases in external tools such as GitHub.\n\nFor more details about the different offerings, see\n[Feature comparison](/studio/gemini/feature-comparison).\n\n### What's new in Gemini in Android Studio\n\nGemini in Android Studio is under active development and updates frequently! You\ncan To learn about the latest AI features, see through Studio Labs. To learn\nmore about preview features, check out the\n[Android Studio preview release notes](/studio/preview/features) and\n[download a preview](/studio/preview)."]]