自 2025 年 3 月 27 日起,我们建议您使用 android-latest-release
而非 aosp-main
构建 AOSP 并为其做出贡献。如需了解详情,请参阅 AOSP 的变更。
下载 build 制品
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Android 持续集成信息中心 (Android CI) 是一款基于网络的工具,用于托管 Android 开源项目 (AOSP) build 和与 Android 平台相关的其他 build,例如通用系统映像 (GSI) build 和兼容性测试套件 (CTS) build。您可以使用该信息中心来确定您贡献的内容何时在 AOSP 中提供。图 1 显示的是 Android CI 信息中心:
图 1. Android CI 信息中心
该信息中心的关键元素为:
- 生成 build 的 Git 分支的名称。
- 目标设备配置和 build。
- build 变体可以是
user
、userdebug
或 eng
。如需详细了解 build 变体,请参阅选择目标。
- 该 build 的唯一 ID。
- 指向 Android CI 信息中心内特定 build 页面的一条永久链接。
- 指向该 build 中所含更改的一条链接。对一整行中的目标来说,更改都是相同的。
- 指向您可针对该 build 下载的制品的链接。如需了解如何下载制品,请参阅下载 build 制品
每一行表示在 Android 自动构建器中完成的一个 build。每一列表示一个目标和变体的组合。每一个单元格显示相应 build 的当前状态。不同的颜色所表示的状态如下:
- 绿色表示 build 构建成功。
- 黄色表示 build 仍在构建中。
- 灰色表示 build 正在等待计算资源但尚未开始。
- 带斜线的灰色表示无法获取 build 状态;目标尚未安排或已不再启用,因此不会构建。
- 黑色表示 build 已被放弃,因为它已超出最长构建等待时间,不会再构建。
下载 build 制品
build 完成后,请按以下步骤下载 build 制品:
- 点击 get_app(查看制品)前往“构建制品”页面。
- 点击制品名称以下载该制品。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-03-26。
[null,null,["最后更新时间 (UTC):2025-03-26。"],[],[],null,["# Download build artifacts\n\n| **Note:** With the [changes to AOSP](/docs/whatsnew/site-updates?year=2025#aosp-changes), the Continuous Integration (CI) system is no longer generating new builds for `aosp-main` or `aosp-main-with-phones`. The `aosp-android-latest-release` CI branch is updated with new builds at every new Android release.\n\nThe\n[*Android Continuous Integration dashboard (Android CI)*](https://ci.android.com/)\nis a web-based tool that hosts Android Open Source Project (AOSP) builds and\nother builds related to the Android platform, such as Generic System Image (GSI)\nand Compatibility Test Suite (CTS) builds. You can use the dashboard to identify\nwhen your contributions are available in AOSP. Figure 1 shows the Android\nCI dashboard:\n\n**Figure 1.** Android CI dashboard\n\nThe key elements of the dashboard are:\n\n1. The name of the Git branch where the builds happen.\n2. The target device configuration and build.\n3. The build variant which can be `user`, `userdebug`, or `eng`. For more information on build variants, see [Choose a target](/docs/setup/build/building#choose-a-target).\n4. The unique ID for the build.\n5. A permanent link to the specific build's page on the Android CI dashboard.\n6. A link to the changes included in this build. The changes are the same for an entire row of targets.\n7. Link to the artifacts that you can download for the build. For instructions on downloading artifacts, see [Download build artifacts](#download-artifacts)\n\nEach row represents a completed build on Android's automated builders. Each\ncolumn represents a target and variant combination. Each cell shows the current\nstate of a build. The colors represent the following states:\n\n- Green represents a successful build.\n- Yellow represents a build that is still in progress.\n- Gray represents a build that is awaiting compute resources and not yet started.\n- Gray with a slash represents a build that is unavailable; the target hasn't been scheduled yet or is no longer enabled and won't be built.\n- Black represents a build that has been abandoned because it crossed the maximum wait time to build duration and won't be built.\n\nDownload build artifacts\n------------------------\n\nAfter a built has completed, follow these steps to download build artifacts:\n\n1. Click get_app(**View artifacts**) to navigate to the Build Artifacts page.\n2. Click the artifact name to download the artifact."]]