Làm quen với Android Studio for Platform
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.
Android Studio for Platform (ASfP) là Môi trường phát triển tích hợp (IDE) chính thức được thiết kế dành riêng cho hoạt động phát triển nền tảng Android. Được xây dựng dựa trên nền tảng mạnh mẽ của IntelliJ IDEA, ASfP được thiết kế riêng để nâng cao năng suất và đơn giản hoá quy trình làm việc cho các kỹ sư làm việc trong Dự án nguồn mở Android (AOSP).
Tại sao nên sử dụng ASfP?
ASfP cung cấp một bộ công cụ toàn diện được tối ưu hoá cho những thách thức riêng biệt của hoạt động phát triển nền tảng, vượt xa hoạt động phát triển ứng dụng Android tiêu chuẩn. Android Studio được tích hợp sâu với cơ sở mã và hệ thống tạo của AOSP, cung cấp các tính năng giúp đẩy nhanh quá trình phát triển của bạn.
Tính năng chính
Tích hợp liền mạch với AOSP: Hoạt động trực tiếp với cây nguồn AOSP và hệ thống xây dựng Soong (tệp Android.bp
). Dễ dàng đồng bộ hoá và quản lý các dự án phức tạp trên nền tảng.
Chỉnh sửa mã thông minh: Tận dụng tính năng hoàn thành, tái cấu trúc và phân tích mã nâng cao cho Kotlin, Java, C/C++ và Rust, giúp bạn viết mã chất lượng cao nhanh hơn.
Gỡ lỗi hiệu quả: Gỡ lỗi mã nền tảng, bao gồm cả C/C++ và Java, bằng các tính năng như điểm ngắt, kiểm tra biến và đánh giá biểu thức.
Tìm hiểu thêm về gỡ lỗi.
Kiểm thử tích hợp: Chạy các lệnh atest
ngay trong IDE để thực thi các kiểm thử nền tảng và xem kết quả. Xem phần Kiểm thử mã nền tảng.
Thiết lập dự án có thể tuỳ chỉnh: Điều chỉnh phạm vi dự án và tạo cấu hình bằng tệp .asfp-project
YAML linh hoạt. Tìm hiểu thêm về quản lý dự án.
Hỗ trợ ngôn ngữ Rust: Hỗ trợ tính năng cốt lõi cho hoạt động phát triển Rust trong AOSP. Xem thêm thông tin tại Rust Support in ASfP (Hỗ trợ Rust trong ASfP).
Trợ lý dựa trên AI: Sử dụng Gemini trong Android Studio để tạo mã, cập nhật mã và nhận câu trả lời cho các câu hỏi về quá trình phát triển, tất cả đều nằm trong trình chỉnh sửa.
Bắt đầu
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-04 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-04 UTC."],[],[],null,["Android Studio for Platform (ASfP) is the official Integrated Development\nEnvironment (IDE) designed specifically for Android platform development. Built\non the powerful foundation of IntelliJ IDEA, ASfP is tailored to enhance\nproductivity and streamline workflows for engineers working within the Android\nOpen Source Project (AOSP).\n\nWhy use ASfP?\n\nASfP provides a comprehensive suite of tools optimized for the unique challenges\nof platform development, going beyond standard Android app development. It\nintegrates deeply with the AOSP codebase and build systems, offering features\nthat accelerate your development process.\n\nKey features\n\n- **Seamless AOSP integration:** Works directly with the AOSP source tree and\n the Soong build system (`Android.bp` files). Effortlessly sync and manage\n complex platform projects.\n\n- **Intelligent code editing:** Benefit from advanced code completion,\n refactoring, and analysis for Kotlin, Java, C/C++, and Rust, helping you\n write high-quality code faster.\n\n- **Powerful debugging:** Debug platform code, including C/C++ and Java, with\n features like breakpoints, variable inspection, and expression evaluation.\n Learn more about [debugging](/studio/platform/debug).\n\n- **Integrated testing:** Run `atest` commands directly from the IDE to\n execute platform tests and view results. See [Test your platform\n code](/studio/platform/test).\n\n- **Customizable project setup:** Fine-tune your project scope and build\n configurations using the flexible `.asfp-project` YAML file. Learn more\n about [project management](/studio/platform/projects).\n\n- **Rust language support:** Core feature support for Rust development in\n AOSP. More details at [Rust Support in ASfP](/studio/platform/projects/rust).\n\n- **AI-powered assistance:** Use [Gemini in Android\n Studio](https://developer.android.com/gemini-in-android) for code\n generation, code updates, and to get answers to your development questions,\n all within the editor.\n\nGet started\n\n- [Install Android Studio for Platform](/studio/platform/install)\n- [Create a project](/studio/platform/projects/create-project)\n- See the latest updates in the [Release Notes](/studio/platform/releases)."]]