Error Building App Bundle
1. The Compiler window looking into
TOOLS folder for the bundle tool instead of the
CMDLINE-TOOLS
2. Package does not contain Bundletools.jar (It was extracted with 7zip)
B4A Version: 12.00 BETA #1
Parsing code. (0.71s)
Java Version: 11
Building folders structure. (0.16s)
Compiling code. (0.41s)
ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code. (0.07s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Compiling resources (0.34s)
Linking resources (4.11s)
Compiling generated Java code. (5.16s)
Finding libraries that need to be dexed. (0.38s)
Dex code (3.78s)
Dex merge (7.76s)
Copying libraries resources (8.77s)
Building app bundle Error
C:\android33\tools\bin\bundletool.jar
3. When I manually created the missing tools\bin location and placed the bundletool.jar I get this error
B4A Version: 12.00 BETA #1
Parsing code. (0.13s)
Java Version: 11
Building folders structure. (0.13s)
Compiling code. (0.50s)
ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code. (0.07s)
Organizing libraries. (1.05s)
(AndroidX SDK)
Compiling resources (0.36s)
Linking resources (13.41s)
Compiling generated Java code. (65.50s)
Finding libraries that need to be dexed. (0.05s)
Dex code (9.87s)
Dex merge (8.53s)
Copying libraries resources (12.02s)
Building app bundle Error
[BT:1.5.0] Error: File 'root/classes.dex' uses reserved file or directory name 'classes.dex'.
com.android.tools.build.bundletool.model.exceptions.InvalidBundleException: File 'root/classes.dex' uses reserved file or directory name 'classes.dex'.
at com.android.tools.build.bundletool.model.exceptions.UserExceptionBuilder.build(UserExceptionBuilder.java:58)
at com.android.tools.build.bundletool.validation.BundleFilesValidator.validateModuleFile(BundleFilesValidator.java:131)
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)