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à trợ thủ 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 các 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â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 đơn giản hoá việc cộng tác với đồng nghiệp và giúp bạn áp dụng các tiêu chuẩn cũng như phương pháp hay nhất của công ty. Trong đó có một số tính năng như:
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-09-03 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-09-03 UTC."],[],[],null,["| **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 must update to use Gemini. [Learn more about service\n| compatibility](/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%7B:.external%7D) or membership in the [Google Developer Program](https://developers.google.com/program%7B:.external%7D).\n - Standard tier.\n - Enterprise tier.\n\nChoose the right tier\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 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\nadmin to consider subscribing to the [business tier](/studio/gemini/get-started-businesses). Gemini for businesses includes additional features that simplify collaboration with your teammates and help you incorporate your company's best practices and standards. These features include:\n\n- Expanded 1M token context window.\n- [Intellectual Property (IP) indemnification](https://cloud.google.com/gemini/docs/discover/works#how-gemini-protects%7B:.external%7D).\n- [VPC Service Controls (VPC-SC) and Private Google Access](https://developers.google.com/gemini-code-assist/docs/configure-vpc-service-controls%7B:.external%7D).\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- Customized code suggestions from your codebases in external tools such as GitHub (available only in the Enterprise tier).\n\nFor more details about the different offerings, see the\n[feature comparison](/studio/gemini/feature-comparison).\n\nWhat's new in Gemini in Android Studio\n\nGemini in Android Studio updates frequently.\nTo learn about the latest AI features, check out the\n[Android Studio preview release notes](/studio/preview/features) and\n[download a preview version of Android Studio](/studio/previ)."]]