Android App Bundle (.aab) Format is getting enforced

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

SteveP495
Posts: 17
Joined: Sun May 02, 2021 1:59 am

Re: Android App Bundle (.aab) Format is getting enforced

Post by SteveP495 » Sun Aug 08, 2021 10:54 pm

Thought I'd provide an update on this. The recent response from LC is that they're busy finishing the work to support .aab.

Despite being told that it'd be ready by the required date it is not a good sign that it wasn't.

I also suggested that they put some comms out abt this. Unless I missed it don't think that has happened.

heatherlaine
Site Admin
Site Admin
Posts: 342
Joined: Thu Feb 23, 2006 7:59 pm
Location: Wales

Re: Android App Bundle (.aab) Format is getting enforced

Post by heatherlaine » Mon Aug 09, 2021 9:16 am

Folks, we apologise for the delay. There are a variety of tricky associated parts to this update which are taking a bit longer than estimated. While a full release with AAB support is on its way, if you have an urgent need in the interim please contact us on support@livecode.com and we should be able to help.

Best Regards,

Heather

SteveP495
Posts: 17
Joined: Sun May 02, 2021 1:59 am

Re: Android App Bundle (.aab) Format is getting enforced

Post by SteveP495 » Sun Sep 05, 2021 9:25 pm

Hi,

Does 9.6.4 support app bundle ?

Steve

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: Android App Bundle (.aab) Format is getting enforced

Post by sphere » Wed Sep 08, 2021 1:46 pm

You can do it yourself via commandline:

simon.schvartzman
Posts: 638
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Re: Android App Bundle (.aab) Format is getting enforced

Post by simon.schvartzman » Wed Sep 08, 2021 3:20 pm

Hi Heather, about
Folks, we apologise for the delay. There are a variety of tricky associated parts to this update which are taking a bit longer than estimated. While a full release with AAB support is on its way, if you have an urgent need in the interim please contact us on support@livecode.com and we should be able to help.

Best Regards,

Heather
can you give some idea as when will it be available? One week, one moth, one quarter...

I'm about to start a new project and this info will be valuable for me.

Many thanks
Simon
________________________________________
To ";" or not to ";" that is the question

simon.schvartzman
Posts: 638
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Re: Android App Bundle (.aab) Format is getting enforced

Post by simon.schvartzman » Thu Sep 09, 2021 10:55 am

You can do it yourself via commandline:
https://developer.android.com/studio/bu ... ild_bundle
@sphere could you please share a step by step tutorial as how to do it?

I did look at the link but since I'm neither familiar with Android Studio nor Gradle I wasn't able to move forward

I'm pretty sure many of us will appreciate your help.

Many thanks
Simon
________________________________________
To ";" or not to ";" that is the question

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: Android App Bundle (.aab) Format is getting enforced

Post by sphere » Thu Sep 09, 2021 12:06 pm

I did not do that yet.
I just pointed to the information where it states clearly how to do it via commandline. I presume the tool the LC is building in will use the same commandline command and bundletool to do that.
Seems doable, as of this part https://developer.android.com/studio/bu ... ild_bundle although it is a bit of work.
Or here https://developer.android.com/studio/bu ... ng-cmdline
Just try it out with a few dummy files.

simon.schvartzman
Posts: 638
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Re: Android App Bundle (.aab) Format is getting enforced

Post by simon.schvartzman » Thu Sep 09, 2021 12:59 pm

Thanks @spehre, i'd rather wait for the mothership to handle it, after all is quite overdue...

Best
Simon
________________________________________
To ";" or not to ";" that is the question

jaui
Posts: 8
Joined: Mon Dec 21, 2020 6:06 am

Re: Android App Bundle (.aab) Format is getting enforced

Post by jaui » Thu Dec 02, 2021 2:38 pm

Experienced the same problem yesterday as Neta in comment 18/19 of quality report under Bug 22251
I used this tools:
LiveCode 9-6-5 (rc 3)
Java 8
Android 11-0 - API 30
Android SDK Build tools 32 rc-1. (all with arcticFox)
The app crashed on my galaxy S5 Neo with aab-file however worked fine as apk-file created with the same tools.

Help!

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7214
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Android App Bundle (.aab) Format is getting enforced

Post by jacque » Thu Dec 02, 2021 5:51 pm

The crash is normal, you can't run an aab file directly. Build an apk for testing or distribution outside the Play Store, and only build the aab when you're ready to submit to the Play Store. The store breaks down the aab to deliver only the architecture that matches the user's device. Without the store algorithms an aab file is useless.

I had some misgivings about submitting an aab without testing it myself but the app is in the store now and works fine.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

jaui
Posts: 8
Joined: Mon Dec 21, 2020 6:06 am

Re: Android App Bundle (.aab) Format is getting enforced

Post by jaui » Sat Dec 04, 2021 4:25 pm

jacque,
Thank you for you insightful answer.
I am not at all an expert but still built an app, tested it, had it pass the Google Review, it was available on Google Play and worked fin. Thereafter, starting from the same LiveCode code (which worked fine as apk) I built the aab, it passed the Review, was available at the Play Store and crashed on my smart phone. So, did I misunderstand you?
Jaui

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7214
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Android App Bundle (.aab) Format is getting enforced

Post by jacque » Sat Dec 04, 2021 9:29 pm

The aab has to be processed by the Play Store before it will work, so you need to download your app from there. Did you try that? You'll also need to delete any current copy on your phone before downloading the one from the store, otherwise the new copy doesn't always install.

An aab file is a specially formatted package that only Google can process; your phone doesn't understand it. When a user requests a download from the Play Store, Google looks at the model and type of the user's phone and delivers only the parts of your app that will run on that specific phone. This makes apps much smaller for download and storage on the user's end, and reduces the load on Google's servers because there is no need to transmit all the code for an architecture (ARM 7, X86, etc.) the phone doesn't use. The reason your phone crashes when you install a local aab is because there is code in there that is incompatible; the Play Store needs to repackage the file for your specific device.

That's a generic explanation as I understand it.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

jaui
Posts: 8
Joined: Mon Dec 21, 2020 6:06 am

Re: Android App Bundle (.aab) Format is getting enforced

Post by jaui » Sat Dec 04, 2021 11:27 pm

Thank you again for your extremely informative answer.
"LiveCode 9 6 5 with Android App Bundle for Play Store" of Sept. 23 by P.M. says:
"All you have to do now is check the “Build App Bundle” checkbox in the Android Standalone Settings. This will produce a .aab file, together with the .apk file. You have to submit the .aab file to the Google Play Store:"
Might be this statement needs some update.
Rainer

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7214
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Android App Bundle (.aab) Format is getting enforced

Post by jacque » Sun Dec 05, 2021 6:45 pm

The docs make sense to me, probably because I'd read about .aab files so I understood how they work. But to newcomers I can see it might need more explanation. Maybe it should say:

"All you have to do now is check the “Build App Bundle” checkbox in the Android Standalone Settings. This will produce a .aab file, together with the .apk file. You have to submit the .aab file to the Google Play Store. The .apk file is for distribution to other stores or for sideloading on personal devices."

This might be a good suggestion for a documentation change in the QCC so that others understand it better. http://quality.livecode.com

Post Reply

Return to “Android Deployment”