无法使用bundletool从AAB生成APK

时间:2019-08-20 13:47:25

标签: unity3d android-app-bundle

我尝试使用捆绑工具从aab文件创建apk,但它始终会给出验证错误,下面添加了错误,我正在使用以下命令

java -jar bundletool.jar build-apks --connected-device --bundle=lemogame_debug.aab --output=op.apks

我总是收到以下消息

INFO: The APKs will be signed with the debug keystore found at 'C:\Users\ALI FARZAN\.android\debug.keystore'.
[BT:0.10.2] Error: Targeted directory 'assets/a/a' is empty.
com.android.tools.build.bundletool.model.exceptions.ValidationException: Targeted directory 'assets/a/a' is empty.
        at com.android.tools.build.bundletool.model.exceptions.ValidationException$Builder.build(ValidationException.java:49)
        at com.android.tools.build.bundletool.model.exceptions.ValidationException$Builder.build(ValidationException.java:41)
        at com.android.tools.build.bundletool.validation.AssetsTargetingValidator.validateTargeting(AssetsTargetingValidator.java:54)
        at com.android.tools.build.bundletool.validation.AssetsTargetingValidator.lambda$validateModule$0(AssetsTargetingValidator.java:35)
        at java.util.Optional.ifPresent(Optional.java:159)
        at com.android.tools.build.bundletool.validation.AssetsTargetingValidator.validateModule(AssetsTargetingValidator.java:35)
        at com.android.tools.build.bundletool.validation.ValidatorRunner.validateBundleModulesUsingSubValidator(ValidatorRunner.java:78)
        at com.android.tools.build.bundletool.validation.ValidatorRunner.validateBundleUsingSubValidator(ValidatorRunner.java:69)
        at com.android.tools.build.bundletool.validation.ValidatorRunner.lambda$validateBundle$3(ValidatorRunner.java:58)
        at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:406)
        at com.android.tools.build.bundletool.validation.ValidatorRunner.validateBundle(ValidatorRunner.java:58)
        at com.android.tools.build.bundletool.validation.AppBundleValidator.validate(AppBundleValidator.java:75)
        at com.android.tools.build.bundletool.commands.BuildApksManager.executeWithZip(BuildApksManager.java:131)
        at com.android.tools.build.bundletool.commands.BuildApksManager.execute(BuildApksManager.java:110)
        at com.android.tools.build.bundletool.commands.BuildApksCommand.execute(BuildApksCommand.java:524)
        at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:74)
        at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:46)

0 个答案:

没有答案