bundletool没有成功终止(退出代码:139)。查看日志

时间:2019-07-28 11:09:57

标签: android android-bundle

bundletool命令对我来说总是失败,例外。

bundletool build-apks --bundle=app-debug.aab --output=app.apks

INFO: The APKs will be signed with the debug keystore found at '/Users/vivart/.android/debug.keystore'.
[BT:0.10.2] Error: com.android.tools.build.bundletool.model.Aapt2Command$Aapt2Exception: Command '[/var/folders/xb/g9w0t8yd1vb0lljtn1tkbtph0000gr/T/8476866499431621839/output/macos/aapt2, convert, --output-format, binary, -o, /var/folders/xb/g9w0t8yd1vb0lljtn1tkbtph0000gr/T/2565547018529074007/binary.apk, /var/folders/xb/g9w0t8yd1vb0lljtn1tkbtph0000gr/T/2565547018529074007/proto.apk]' didn't terminate successfully (exit code: 139). Check the logs.
java.lang.RuntimeException: com.android.tools.build.bundletool.model.Aapt2Command$Aapt2Exception: Command '[/var/folders/xb/g9w0t8yd1vb0lljtn1tkbtph0000gr/T/8476866499431621839/output/macos/aapt2, convert, --output-format, binary, -o, /var/folders/xb/g9w0t8yd1vb0lljtn1tkbtph0000gr/T/2565547018529074007/binary.apk, /var/folders/xb/g9w0t8yd1vb0lljtn1tkbtph0000gr/T/2565547018529074007/proto.apk]' didn't terminate successfully (exit code: 139). Check the logs.
        at com.android.tools.build.bundletool.io.ConcurrencyUtils.waitFor(ConcurrencyUtils.java:59)
        at com.android.tools.build.bundletool.io.ConcurrencyUtils.waitForAll(ConcurrencyUtils.java:42)
        at java.util.function.Function.lambda$andThen$1(Function.java:88)
        at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:503)
        at com.android.tools.build.bundletool.io.ApkSerializerManager.serializeApks(ApkSerializerManager.java:180)
        at com.android.tools.build.bundletool.io.ApkSerializerManager.populateApkSetBuilder(ApkSerializerManager.java:101)
        at com.android.tools.build.bundletool.commands.BuildApksManager.executeWithZip(BuildApksManager.java:229)
        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)
Caused by: java.util.concurrent.ExecutionException: com.android.tools.build.bundletool.model.Aapt2Command$Aapt2Exception: Command '[/var/folders/xb/g9w0t8yd1vb0lljtn1tkbtph0000gr/T/8476866499431621839/output/macos/aapt2, convert, --output-format, binary, -o, /var/folders/xb/g9w0t8yd1vb0lljtn1tkbtph0000gr/T/2565547018529074007/binary.apk, /var/folders/xb/g9w0t8yd1vb0lljtn1tkbtph0000gr/T/2565547018529074007/proto.apk]' didn't terminate successfully (exit code: 139). Check the logs.
        at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:502)
        at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:481)
        at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:83)
        at com.android.tools.build.bundletool.io.ConcurrencyUtils.waitFor(ConcurrencyUtils.java:49)
        ... 10 more
Caused by: com.android.tools.build.bundletool.model.Aapt2Command$Aapt2Exception: Command '[/var/folders/xb/g9w0t8yd1vb0lljtn1tkbtph0000gr/T/8476866499431621839/output/macos/aapt2, convert, --output-format, binary, -o, /var/folders/xb/g9w0t8yd1vb0lljtn1tkbtph0000gr/T/2565547018529074007/binary.apk, /var/folders/xb/g9w0t8yd1vb0lljtn1tkbtph0000gr/T/2565547018529074007/proto.apk]' didn't terminate successfully (exit code: 139). Check the logs.
        at com.android.tools.build.bundletool.model.Aapt2Command$CommandExecutor.execute(Aapt2Command.java:62)
        at com.android.tools.build.bundletool.model.Aapt2Command$1.convertApkProtoToBinary(Aapt2Command.java:36)
        at com.android.tools.build.bundletool.io.ApkSerializerHelper.writeToZipFile(ApkSerializerHelper.java:159)
        at com.android.tools.build.bundletool.io.ApkSerializerHelper.writeToZipFile(ApkSerializerHelper.java:144)
        at com.android.tools.build.bundletool.io.SplitApkSerializer.writeToDisk(SplitApkSerializer.java:75)
        at com.android.tools.build.bundletool.io.SplitApkSerializer.writeSplitToDisk(SplitApkSerializer.java:53)
        at com.android.tools.build.bundletool.io.ApkSetBuilderFactory$ApkSetArchiveBuilder.addSplitApk(ApkSetBuilderFactory.java:105)
        at com.android.tools.build.bundletool.io.ApkSerializerManager$ApkSerializer.serialize(ApkSerializerManager.java:376)
        at com.android.tools.build.bundletool.io.ApkSerializerManager.lambda$null$3(ApkSerializerManager.java:184)
        at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:117)
        at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:38)
        at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:77)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)

即使我尝试使用全新的示例应用程序。 我是否缺少任何设置?

0 个答案:

没有答案