Installation of the app failed, without any clear error
- Dominant language
- Java
- Stars
- 4k
- Forks
- 428
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Trying to install on an emulator (Android 25)
Ran first the command:
`java -jar bundletool.jar build-apks --bundle=filename.aab --output=filename.apks --ks=android.keystore --ks-pass=pass:android --ks-key-alias=androiddebugkey --key-pass=pass:android --overwrite`
Then followed with:
`java -jar bundletool.jar install-apks --apks=filename.apks --device-id=localhost:5555`
**Bundletool version(s) affected**
Version: 1.8.0
**Stacktrace**
```
[BT:1.8.0] Error: Installation of the app failed.
com.android.tools.build.bundletool.model.exceptions.CommandExecutionException: Installation of the app failed.
at com.android.tools.build.bundletool.model.exceptions.InternalExceptionBuilder.build(InternalExceptionBuilder.java:57)
at com.android.tools.build.bundletool.device.DdmlibDevice.installApks(DdmlibDevice.java:155)
at com.android.tools.build.bundletool.commands.InstallApksCommand.lambda$execute$1(InstallApksCommand.java:210)
at com.android.tools.build.bundletool.device.AdbRunner.run(AdbRunner.java:81)
at com.android.tools.build.bundletool.device.AdbRunner.run(AdbRunner.java:61)
at com.android.tools.build.bundletool.commands.InstallApksCommand.execute(InstallApksCommand.java:209)
at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:91)
at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:49)
Caused by: com.android.ddmlib.InstallException
at com.android.ddmlib.SplitApkInstaller.install(SplitApkInstaller.java:94)
at com.android.ddmlib.internal.DeviceImpl.installPackages(DeviceImpl.java:1166)
at com.android.tools.build.bundletool.device.DdmlibDevice.installApks(DdmlibDevice.java:139)
... 6 more
Caused by: com.android.ddmlib.ShellCommandUnresponsiveException
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:689)
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:468)
at com.android.ddmlib.internal.DeviceImpl.executeShellCommand(DeviceImpl.java:702)
at com.android.ddmlib.SplitApkInstallerBase.installCommit(SplitApkInstallerBase.java:89)
at com.android.ddmlib.SplitApkInstaller.install(SplitApkInstaller.java:85)
... 8 more
```
**To Reproduce**
Not easily reproducible, as this works on second machine I am trying. Would be useful with better error message.
Contributor guide
Assessment
This issue has not been assessed yet.