从 Android App Bundle 生成通用 APK [英] Generate Universal APK from Android App Bundle

查看:80
本文介绍了从 Android App Bundle 生成通用 APK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序包文件,现在我想生成一个可以安装到所有设备的通用 APK.我曾尝试使用此命令生成通用 APK:

I have an app bundle file, now I want to generate a universal APK that can be installed to all devices. I have tried to use this command to generate universal APK:

$bundletool build-apks --bundle=myapp_bundle.abb --output=myapp.apks --universal

但是,我得到的是 .apks(不是 .apk),我无法直接安装到任何设备.有人知道如何获取通用 .apk 文件而不是 .apks 吗?

However, what I got is .apks (not .apk) where I cannot install directly to any devices. Anyone know how to get a universal .apk file instead of .apks?

非常感谢.

推荐答案

使用 extract-apksinstall-apks 命令分别从APK 设置为目录,或安装在连接的设备上.

Use either the extract-apks or the install-apks command to respectively extract the APK from the APK Set to a directory, or install them on a connected device.

或者,只需使用您最喜欢的 zip 工具解压缩 .apk.但这在未来可能并不总是有效.

Alternatively, just unzip the .apks using your favourite zip tool. But that might not always work in the future.

这篇关于从 Android App Bundle 生成通用 APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆