在 Cocos Creator 中使用 Android App Bundle 发布游戏
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Android App Bundle 是一种发布格式,其中包含一个应用的所有经过编译的代码和资源。利用这种发布格式,您只需准备 app bundle,而 APK 生成及签名则交由 Google Play 来完成。
Google Play 会使用您的 app bundle 针对每种设备配置生成并提供经过优化的 APK,因此只会下载特定设备所需的代码和资源来运行您的应用。您不必再构建、签署和管理多个 APK 来优化对不同设备的支持,而用户也可以获得更小且更优化的下载文件包。
如何以 AAB 格式发布游戏
在 Cocos Creator 中,只需在 Android“Build”(构建)面板内选中 Generate App Bundle (Google Play)(生成 App Bundle [Google Play])选项即可。然后,您的游戏将以 AAB 格式发布。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Publish your game with Android App Bundle in Cocos Creator\n\nAn [Android App Bundle](/guide/app-bundle) is a publishing format that includes\nall your app's compiled code and resources, and defers APK generation and\nsigning to Google Play.\n\nGoogle Play uses your app bundle to generate and serve optimized APKs for each\ndevice configuration, so only the code and resources that are needed for a\nspecific device are downloaded to run your app. You no longer have to build,\nsign, and manage multiple APKs to optimize support for different devices, and\nusers get smaller, more-optimized downloads.\n\nHow to publish your game with AAB format\n----------------------------------------\n\nIn Cocos Creator, just check the **Generate App Bundle (Google Play)** option in\nthe Android Build panel. Your game will then be published with the AAB format."]]