認識平台版 Android Studio
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Android Studio for Platform (ASfP) 是用於 Android 平台開發的官方整合開發環境 (IDE)。Android Studio for Platform 以 IntelliJ IDEA 的強大程式碼編輯器和開發人員工具為基礎,進一步提供其他可增進 Android 開放原始碼計畫 (AOSP) 建構效率的功能,例如:
- 以 Soong 為基礎的建構系統
- 快速且功能豐富的模擬器
- Java、Kotlin 和 C++ 的偵錯工具
- 測試工具
- 支援 C++ 和 NDK
本頁將介紹 Android Studio 的基礎平台功能。如需最新異動的摘要,請參閱 Android Studio 平台版本資訊。
專案架構
Android Studio for Platform 中的專案包含定義 AOSP 程式碼集工作區的所有內容,包括原始碼、資產、測試程式碼和建構設定。進一步瞭解專案結構。
Soong 建構系統
Soong 是 Android 平台開發人員最常使用的建構系統。共有三種:
Android Studio for Platform 會使用 Soong 建構系統建構 Android。Soong 會利用 kati GNU Make 複本工具和 Ninja 建構系統元件,加快 Android 的建構作業。
Soong 建構檔案稱為「藍圖檔案」,名稱為 Android.bp
。
如需 Android.bp
檔案格式的詳細說明,請參閱 Android.bp。
Android Studio 的平台偵錯工具可讓您選取裝置、在 Java 和 C++ 中設定中斷點,以及在執行階段檢查變數和運算式。進一步瞭解偵錯工具。
Android Studio for Platform 支援執行本機 (裝置) 測試 (透過 atest
)。進一步瞭解測試工具。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-01-30 (世界標準時間)。
[[["容易理解","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-01-30 (世界標準時間)。"],[],[],null,["# Meet Android Studio for Platform\n\nAndroid Studio for Platform (ASfP) is the official Integrated Development\nEnvironment (IDE) for Android platform development. Based on the powerful\ncode editor and developer tools from\n[IntelliJ IDEA](https://www.jetbrains.com/idea/), Android\nStudio for Platform offers even more features that enhance your\nproductivity when building on the Android Open Source Project (AOSP), such as:\n\n- Soong-based build system\n- A fast and feature-rich emulator\n- A debugger for Java, Kotlin, and C++\n- Testing tools\n- C++ and NDK support\n\nThis page provides an introduction to basic Android Studio for\nPlatform features. For a summary of the latest changes, see the\n[Android Studio for Platform release notes](/studio/platform/releases).\n\nProject structure\n-----------------\n\nA project in Android Studio for Platform contains everything that\ndefines your workspace for your AOSP codebase, from source code and\nassets to test code and build configurations. Learn more about the\n[project structure](/studio/platform/projects).\n\nSoong build system\n------------------\n\nSoong is the most widely used build system for Android platform\ndevelopers. There are altogether three:\n\nAndroid Studio for Platform uses the *Soong* build system to build\nAndroid. Soong leverages the\n[kati](https://github.com/google/kati/blob/master/README.md) GNU\nMake clone tool and [Ninja](https://ninja-build.org/) build system\ncomponent to speed up builds of Android.\n\nSoong build files are called *blueprint files* and are named `Android.bp`.\n\nFor a detailed description of the `Android.bp` file format, see\n[Android.bp](https://source.android.com/docs/setup/reference/androidbp).\n\nDebugging tools\n---------------\n\nAndroid Studio for Platform's debugger lets you select a device, set\nbreakpoints in Java and C++, and examine variables and expressions at\nruntime. Learn more about the\n[debugger](/studio/platform/debug).\n\nTesting tools\n-------------\n\nAndroid Studio for Platform supports running local (device) tests (via `atest`).\nLearn more about the [testing](/studio/platform/test) tools."]]