探索 Android Studio for Platform
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Android Studio for Platform (ASfP) 是用于开发 Android 平台的官方集成开发环境 (IDE)。Android Studio for Platform 基于 IntelliJ IDEA 强大的代码编辑器和开发者工具,还提供更多可提高 Android 开源项目 (AOSP) 构建效率的功能,例如:
- 基于 Soong 的构建系统
- 快速且功能丰富的模拟器
- 适用于 Java、Kotlin 和 C++ 的调试程序
- 测试工具
- C++ 和 NDK 支持
本页面介绍了 Android Studio for Platform 的基本功能。如需查看最新变更摘要,请参阅 Android Studio for Platform 版本说明。
项目结构
Android Studio for Platform 中的项目包含为 AOSP 代码库定义工作区的所有内容,包括源代码、资源、测试代码和 build 配置。详细了解项目结构。
Soong 构建系统
Soong 是 Android 平台开发者最广泛使用的构建系统。共有三种:
Android Studio for Platform 使用 Soong 构建系统来构建 Android。它利用 kati GNU Make 克隆工具和 Ninja 构建系统组件来加速 Android 的构建。
Soong build 文件称为蓝图文件,并以 Android.bp
命名。
如需详细了解 Android.bp
文件格式,请参阅 Android.bp。
借助 Android Studio for Platform 的调试程序,您可以选择设备、在 Java 和 C++ 中设置断点,以及在运行时检查变量和表达式。详细了解调试程序。
Android Studio for Platform 支持运行本地(设备)测试(通过 atest
)。详细了解测试工具。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):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"]],["最后更新时间 (UTC):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."]]