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

查看:1304
本文介绍了从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-apks install-apks 命令从APK集中提取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工具将.apks解压缩。但这在将来可能并不总是有效。

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天全站免登陆