Android App Bundle tool 的几个命令行

Posted aikongmeng

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Android App Bundle tool 的几个命令行相关的知识,希望对你有一定的参考价值。

android App Bundle tool
https://github.com/google/bundletool

bundletool

Bundletool is a tool to manipulate Android App Bundles.

The Android App Bundle is a new format for publishing Android apps in app
distribution stores such as Google Play.

Bundletool has a few different responsibilities:

  • Build an Android App Bundle from pre-compiled modules of a project.

  • Generate an APK Set archive containing APKs for all possible devices.

  • Extract APK(s) from the APK Set compatible with a given device.

  • Install APK(s) from the APK Set compatible with a connected device.

  • Extract device spec from a device as a JSON file.

  • Add code transparency to an Android App Bundle. Code transparency is an
    optional code signing mechanism.

  • Verify code transparency inside an Android App Bundle, APK files or an
    application installed on a connected device.

Read more about the App Bundle format and Bundletool’s usage at
g.co/androidappbundle

Documentation of bundletool commands can be found at:
https://developer.android.com/studio/command-line/bundletool

aab 转成 apk

s

java -jar bundletool-all-1.8.2.jar build-apks --bundle=D:\\x_android\\app\\build\\outputs\\bundle\\betaRelease\\app-beta-release.aab --output=D:\\x_android\\app\\build\\outputs\\bundle\\betaRelease\\app-beta-relase.apks

安装apks

java -jar bundletool-all-1.8.2.jar install-apks --apks=D:\\x_android\\app\\build\\outputs\\bundle\\betaRelease\\app-beta-relase.apks

device 配置json

java -jar bundletool-all-1.8.2.jar get-device-spec --output=config.json

根据device 配置json输出apk

java -jar bundletool-all-1.8.2.jar extract-apks --apks=D:\\x_android\\app\\build\\outputs\\bundle\\betaRelease\\app-beta-relase.apks --output-dir=apks --device-spec=config.json
阅读世界,共赴山海 423全民读书节,邀你共读

以上是关于Android App Bundle tool 的几个命令行的主要内容,如果未能解决你的问题,请参考以下文章

Android App Bundle tool 的几个命令行

Android App Bundle tool 的几个命令行

ADT(Android Developer Tools)中配置SVN

使用Bundle在Activity中交换数据

将 android app bundle 上传到 playstore 时出错。。您的 app bundle 的目标是无法识别的语言 jp

您的 Android App Bundle 使用错误的密钥进行签名。确保您的 app bundle 使用正确的签名密钥进行签名,然后重试