Android Question App bundle problem

parsa bidram

New Member
Hi, When I want to compile my app and get apk everything is good, but when I try to make android app bundle i get this error, please help me

B4A Version: 11.00
Parsing code. (0.65s)
Java Version: 11
Building folders structure. (0.01s)
Compiling code. (0.30s)
Compiling layouts code. (0.02s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Compiling resources (0.07s)
Linking resources (0.24s)
Compiling generated Java code. (0.01s)
Convert byte code - optimized dex. (3.28s)
Copying libraries resources (0.25s)
Building app bundle Error
[BT:1.5.0] Error: Module files can be only in pre-defined directories, but found 'library.iml'.
com.android.tools.build.bundletool.model.exceptions.InvalidBundleException: Module files can be only in pre-defined directories, but found 'library.iml'.
at com.android.tools.build.bundletool.model.exceptions.UserExceptionBuilder.build(UserExceptionBuilder.java:58)
at com.android.tools.build.bundletool.validation.BundleFilesValidator.validateModuleFile(BundleFilesValidator.java:156)
at com.android.tools.build.bundletool.validation.ValidatorRunner.validateBundleModulesUsingSubValidator(ValidatorRunner.java:81)
at com.android.tools.build.bundletool.validation.ValidatorRunner.lambda$validateBundleModules$4(ValidatorRunner.java:64)
at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:406)
at com.android.tools.build.bundletool.validation.ValidatorRunner.validateBundleModules(ValidatorRunner.java:63)
at com.android.tools.build.bundletool.validation.BundleModulesValidator.validate(BundleModulesValidator.java:82)
at com.android.tools.build.bundletool.commands.BuildBundleCommand.execute(BuildBundleCommand.java:231)
at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:71)
at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:47)
 

MikeSW17

Active Member
Licensed User
Longtime User
What is the 'Library.iml' file (and which folder is it in)?
No .IML files are documented or contained in the B4A, Java, Resources or SDK downloads.
Should it be a .XML file?

Is this a new/recently updated B4A installation?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

parsa bidram

New Member
So, I deleted my sdk and setup a new one but didn't work.
There is no library.iml in my project, it just appear when b4a try to make aab but it goes fail and I can find it in " object/bin/base.zip". It is inside the base.zip.
Here is my project. it is done and ready to upload to google play but I can not make app bundle. can you tell me what is problem and if u can give me my .aab file :D!
Thank you for help.

 
Last edited:
Upvote 0

parsa bidram

New Member
It builds fine here.

Are you sure that you followed the instructions correctly: https://www.b4x.com/b4a.html ?
It is a matter of downloading two zip files and unzipping them. Nothing else.
Yes I am sure sir. I started everything again and install them (3 times with 7zip) but didn't solve the problem, Also I make new small project and I could made .aab file, but for my project still error.
I do not think problem is from sdk or jdk.
 
Upvote 0
Top