gpt4 book ai didi

android - 如何从 Jenkins 创建 aab 而不是 apk

转载 作者:行者123 更新时间:2023-11-29 18:29:48 24 4
gpt4 key购买 nike

我想将我的个人应用程序配置为在 Jenkins 中构建为 android 应用程序包而不是 apk。我如何配置我的 Jenkins 来构建 aab 而不是 apk

最佳答案

您需要 BundleTool 您可以使用 bundletool 创建一个 aab 并对其进行签名甚至测试。 您可以像安装另一个 CLI 实用程序一样安装 Bundletool,并在 Jenkins 中执行命令。

或者您可以只执行 Gradle 任务,例如 bundleRelease 来生成您的发布 aab。

Here详细介绍了如何执行此操作。

https://developer.android.com/studio/build/building-cmdline#bundletool-build https://developer.android.com/studio/command-line/bundletool

关于android - 如何从 Jenkins 创建 aab 而不是 apk,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56852095/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com