Android Question Building app bundle Error


Active Member
Licensed User
Longtime User
It's first time I try "Build App Bundle" with a new created app. Before I could just upload the .apk file, now google wants the .aab file.
But I get "Building app bundle Error". Also in an small test project.

B4A Version: 11.80
Parsing code.    (0.02s)
    Java Version: 11
Building folders structure.    (0.24s)
Running custom action.    (0.06s)
Compiling code.    (0.03s)
Compiling layouts code.    (0.02s)
Organizing libraries.    (0.04s)
    (AndroidX SDK)
Compiling resources    (0.52s)
Linking resources    (0.35s)
Compiling generated Java code.    (1.73s)
Finding libraries that need to be dexed.    (0.02s)
Dex code    (1.66s)
Dex merge    (1.56s)
Copying libraries resources    (0.32s)
Building app bundle    Error


Active Member
Licensed User
Longtime User
OK, I solved it. Not so easy, but now it is OK.

First to understand, that line 18 in post #1 means, that the file "bundletool.jar" is missing. But why? I have in C:\ the (older) "android" and the (newer) "android2" folder, but it was in none of them. Even after installing the new B4A 11.80 and also not after installing bundletool (Google Maven) Version 1.11.0 in SDK Manager.
Only I found something here: C:\android\extras\b4a_remote\com\android\tools\build\bundletool\1.11.0

So I found and downloaded the additional resources in B4A v10.9 BETA. There it was! Not in \tools\ but in folder \build-tools\. And I copied to my "android2" folder (also had to create folder "tools" and "bin" there before).

OK, it works :)
Upvote 0