探索 Android Studio for Platform
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Android Studio for Platform (ASfP) 是专门为 Android 平台开发设计的官方集成开发环境 (IDE)。ASfP 基于 IntelliJ IDEA 的强大基础构建,旨在提高在 Android 开源项目 (AOSP) 中工作的工程师的生产效率并简化其工作流程。
为何要使用 ASfP?
ASfP 提供了一套全面的工具,这些工具针对平台开发特有的挑战进行了优化,超越了标准的 Android 应用开发。它与 AOSP 代码库和构建系统深度集成,可提供有助于加快开发流程的功能。
主要功能
无缝 AOSP 集成:直接与 AOSP 源代码树和 Soong 构建系统(Android.bp
文件)配合使用。轻松同步和管理复杂的平台项目。
智能代码编辑:利用 Kotlin、Java、C/C++ 和 Rust 的高级代码补全、重构和分析功能,帮助您更快地编写高质量的代码。
强大的调试功能:使用断点、变量检查和表达式求值等功能调试平台代码,包括 C/C++ 和 Java。
详细了解调试。
集成式测试:直接从 IDE 运行 atest
命令,以执行平台测试并查看结果。请参阅测试平台代码。
可自定义的项目设置:使用灵活的 .asfp-project
YAML 文件微调项目范围和构建配置。详细了解项目管理。
Rust 语言支持:在 AOSP 中为 Rust 开发提供核心功能支持。如需了解详情,请参阅 ASfP 中的 Rust 支持。
AI 赋能的辅助功能:使用 Android Studio 中的 Gemini 生成代码、更新代码,以及在编辑器中获取开发问题的解答。
开始使用
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-09-04。
[null,null,["最后更新时间 (UTC):2025-09-04。"],[],[],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)."]]