红鱼儿

Delphi 10.4.2 Android 64位发布格式之App Bundle格式aab

1、Android 64位新规则

      详看官方文档:https://developer.android.com/guide/app-bundle

      1、当包大于150M;

      2、当引入过多SDK造成包过大时;发布出来的结果,是aab(App Bundle格式,一种新的发布格式),而非apk
 
2、D10.4.2的Android 64位发布结果

上图所示,编译时,所选择Target Platform为Android 64-bit且Configuration选Application Store时 ,发布出来的结果,是aab(上图中App Bundle格式,一种新的发布格式),而非apk,这取决于编译包额大小,大小超过150m的包都aab

 

编译时,所选择Target Platform为Android 64-bit ,但Configuration选Development而非Application Store时,发布出来的结果,仍然为apk。
编译时,所选择Target Platform为Android 32-bit ,发布出来的结果,为apk。

3、Android 64位发布格式aab的安装运行
aab格式,只能用于Application Store中部署,并自动拆分后下载和安装运行;aab不能直接在Android手机中安装和运行

编译并发布出来的aab格式,若需转化为apk,必须通过bundletool进行转化。

参考:

编译时,所选择Target Platform为Android 64-bit ,发布出来的结果,可能是aab(上图中App Bundle格式,一种新的发布格式),而非apk,这取决于编译包额大小,大小超过150m的包都aab

详看官方文档:
https://developer.android.com/guide/app-bundle


其它参考文档:
《关于aab转apk的方法--bundletool》https://blog.csdn.net/qq_22521145/article/details/102553053
《怎么从Android App Bundle (.aab)提取和转换apks文件(从AAB到APKs的转换和提取)》
https://blog.csdn.net/chichoxian/article/details/105570364?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-5.control&dist_request_id=1328592.16597.16147919535052427&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-5.control
《Android Jetpack之Android App Bundle》https://blog.csdn.net/weixin_37730482/article/details/83501586
《Delphi Android 64位支持》https://blog.marcocantu.com/blog/2019-delphi-android-64bit-rad-1033.html

 原文地址:https://blog.csdn.net/pulledup/article/details/114579951

posted on 2021-03-22 20:53  红鱼儿  阅读(277)  评论(0编辑  收藏  举报