bundletool
Manipulate Android Application Bundles. Some subcommands such as
validatehave their own usage documentation. More information: https://developer.android.com/tools/bundletool.
- Display help for a subcommand:
bundletool help
- Generate APKs from an application bundle (prompts for keystore password):
bundletool build-apks --bundle --ks --ks-key-alias --output
- Generate APKs from an application bundle giving the keystore password:
bundletool build-apks --bundle --ks --ks-key-alias --ks-pass --output
- Generate APKs including only one single APK for universal usage:
bundletool build-apks --bundle --mode --ks --ks-key-alias --output
- Install the right combination of APKs to an emulator or device:
bundletool install-apks --apks
- Estimate the download size of an application:
bundletool get-size total --apks
- Generate a device specification JSON file for an emulator or device:
bundletool get-device-spec --output
- Verify a bundle and display detailed information about it:
bundletool validate --bundle
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
