谷歌搞了个Android App Bundle, Unity在2018.4版本后也支持了此功能,这个能缩减不少包体大小,特别是当你接入了很多SDK的时候。我们受益于此降低了有十M多的包体。 那么Unity打出的aab文件转成apk,就需要使用工具bundletool了。
官方文档:
https://developer.android.google.cn/studio/command-line/bundletool
下载地址:
https://github.com/google/bundletool/releases
部分参考博客,很详细了,我也不多写了。
https://blog.csdn.net/weixin_37730482/article/details/83501586
(概述 Android App Bundle 相关的部分东西)
https://www.jianshu.com/p/d41b3752fb69
(详细描述 bundletool 工具的使用)
https://blog.csdn.net/qq_42076140/article/details/101305764
(bundletool 工具的基础使用)
原文地址:
https://mp.csdn.net/postedit/102553053
转载请注明出处!
谷歌搞了个Android App Bundle,Unity在2018.4版本后也支持了此功能,这个能缩减不少包体大小,特别是当你接入了很多SDK的时候。我们受益于此降低了有十M多的包体。那么Unity打出的aab文件转成apk,就需要使用工具bundletool了。官方文档:https://developer.android.google.cn/studio/command-line/bu...
Bundle
tool
is a
tool
to manipulate Android App
Bundle
s.
The Android App
Bundle
is a new format for publishing Android apps in app distribution stores such as Google Play.
Bundle
tool
has a few different responsibilities:
Build an Android App
Bundle
from pre-compiled modules of a project.
Generate an
APK
Set archive containing
APK
s 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
Bundle
tool
's usage at g.co/androidapp
bundle
Documentation of
bundle
tool
commands can be found at: https://developer.android.com/studio/command-line/
bundle
tool
在
unity
2017.4.x才有的Build App
Bundle
选项,2018.3 beta也新增了这个选项。我使用的是
Unity
2017.4.24f1。
下面说一下导出步骤:
1.在Build Setting中Build System 选择Gradle。这样Build App
Bundle
才会出现。然后勾选上。
2.在Player Setting中Other Setting的一些设...
系统:Windows 10
官方文档:https://developer.android.google.cn/studio/command-line/
bundle
tool
1.下载
bundle
tool
,下载地址:https://github.com/google/
bundle
tool
/releases
2.配置
bundle
tool
,
@doskey
bundle
tool
=java -jar xxx\
bundle
tool
-all.jar $*
3.当
bundle
tool
从 app
bundle
生成 AP
Google Play 应用商店正在不断发展,以满足安卓用户和开发者不断增长的需求和要求。其中最具颠覆性的变化之一将在 8 月到来,届时谷歌应用商店将改用 App
Bundle
s 而不是
APK
作为其标准包格式,这一变化不仅会影响到开发者,也会影响到安卓用户,希望能有更好的效果。
AAB
全称Android App
Bundle
s
APK
全称Android Package
其实对使用者没有任何影响,甚至终端使用者根本不会看到
aab
包。严格来讲并非
aab
替换
apk
,只是开发者在Google Play发布
准备命令行工具:
bundle
tool
.jar
下载链接:https://developer.android.google.cn/studio/command-line/
bundle
tool
aab
转
apk
:
java -jar
bundle
tool
.jar build-
apk
s --
bundle
=xxx.
aab
--output=xxx.
apk
s --overwrite --mode=universal --ks=目录/xxx.keystore--ks-pass=pass:xxx --ks-.
Google Play商店中的大型应用程序和游戏的下载率普遍较低,这是因为用户担心会使用设备上过多的存储空间,耗尽他们的数据流量,而且在网速缓慢的时候进行下载会等待更长时间。Android App
Bundle
是全新的Android应用发布格式,它能使用户设备上的游戏更小。
在
Unity
2018.3 beta中,我们为部分硬件配置加入了App
Bundle
的支持。本文将介绍如何构建And...
安卓sdk下载: http://www.android-studio.org/
也可以在这下载:
链接:http://pan.baidu.com/s/1bpcAWm7 密码:q16c
下载完成后,进行解压:
一定要放在自己能记住的地方,并且不能有中文路径
java的jdk下载: http://www.oracle.com/technetwor...
aab
格式可以通过Android Studio中的“Generate Signed
Bundle
/
APK
”功能
转
换为
apk
格式。具体步骤如下:
1. 在Android Studio中打开项目,点击菜单栏中的“Build”选项,选择“Generate Signed
Bundle
/
APK
”。
2. 在弹出的窗口中选择“
APK
”选项,点击“Next”。
3. 选择应用程序的keystore文件,输入密码和别名,点击“Next”。
4. 在“Build Variants”页面中选择“release”选项,点击“Finish”。
5. Android Studio将自动构建
apk
文件并保存在指定的目录中。
注意:在
转
换过程中,需要确保应用程序的版本号和签名信息与之前的
aab
文件相同。