認識平台版 Android Studio
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Android Studio for Platform (ASfP) 是專為 Android 平台開發設計的官方整合開發環境 (IDE)。ASfP 以 IntelliJ IDEA 的強大基礎為建構依據,專為在 Android 開放原始碼計畫 (AOSP) 中工作的工程師量身打造,可提升生產力並簡化工作流程。
為什麼要使用 ASfP?
ASfP 提供全方位工具套件,可因應平台開發的獨特挑戰進行最佳化,超越標準 Android 應用程式開發。Android Studio 深度整合 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 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-09-04 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間: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)."]]