Android Question Building app bundle Error

alirezahassan

Active Member
Licensed User
hi,
i get an error what should i do?
Building app bundle Error:
B4A Version: 11.00
Parsing code.    (0.48s)
    Java Version: 11
Building folders structure.    (0.04s)
Compiling code.    (0.82s)
    
ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code.    (0.08s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Compiling resources    (0.25s)
Linking resources    (3.15s)
Compiling generated Java code.    (4.40s)
Convert byte code - optimized dex.    (29.15s)
Copying libraries resources    (17.03s)
Building app bundle    Error
[BT:1.5.0] Error: Invalid dex file indices, expecting file 'classes?.dex' but found 'classes2.dex'.
com.android.tools.build.bundletool.model.exceptions.InvalidBundleException: Invalid dex file indices, expecting file 'classes?.dex' but found 'classes2.dex'.
    at com.android.tools.build.bundletool.model.exceptions.UserExceptionBuilder.build(UserExceptionBuilder.java:58)
    at com.android.tools.build.bundletool.validation.DexFilesValidator.validateDexNames(DexFilesValidator.java:78)
    at com.android.tools.build.bundletool.validation.DexFilesValidator.validateModule(DexFilesValidator.java:63)
    at com.android.tools.build.bundletool.validation.ValidatorRunner.validateBundleModulesUsingSubValidator(ValidatorRunner.java:78)
    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)
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…