question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Installation of the app failed on bundletool install-apks command

See original GitHub issue

Describe the bug Hi! I’m trying to install the .apks on my Nexus 6P but I’m getting [BT:0.4.1] Error: Installation of the app failed. 100% of the time, but when I try to install on my Asus Zenfone Go it works. I tried signing with release keys, debug keys, building from command line and Android Studio but no success. I have some native/cpp code in my app and I got this abi related error once: E/SplitApkInstaller: Failed to finalize session : INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113, weird that this error just showed up once.

Bundletool version(s) affected Version: 0.4.1

Stacktrace

[BT:0.4.1] Error: Installation of the app failed.
com.android.tools.build.bundletool.exceptions.InstallationException: Installation of the app failed.
	at com.android.tools.build.bundletool.exceptions.InstallationException$Builder.build(InstallationException.java:47)
	at com.android.tools.build.bundletool.exceptions.InstallationException$Builder.build(InstallationException.java:41)
	at com.android.tools.build.bundletool.device.DdmlibDevice.installApks(DdmlibDevice.java:98)
	at com.android.tools.build.bundletool.device.ApksInstaller.installOnDevice(ApksInstaller.java:89)
	at com.android.tools.build.bundletool.device.ApksInstaller.installApks(ApksInstaller.java:78)
	at com.android.tools.build.bundletool.device.ApksInstaller.installApks(ApksInstaller.java:45)
	at com.android.tools.build.bundletool.commands.InstallApksCommand.lambda$execute$3(InstallApksCommand.java:145)
	at com.android.tools.build.bundletool.io.TempFiles.lambda$withTempDirectory$0(TempFiles.java:67)
	at com.android.tools.build.bundletool.io.TempFiles.withTempDirectoryReturning(TempFiles.java:51)
	at com.android.tools.build.bundletool.io.TempFiles.withTempDirectory(TempFiles.java:70)
	at com.android.tools.build.bundletool.commands.InstallApksCommand.execute(InstallApksCommand.java:129)
	at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:85)
	at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:44)
Caused by: com.android.ddmlib.InstallException
	at com.android.ddmlib.SplitApkInstaller.install(SplitApkInstaller.java:100)
	at com.android.ddmlib.Device.installPackages(Device.java:926)
	at com.android.tools.build.bundletool.device.DdmlibDevice.installApks(DdmlibDevice.java:92)
	... 10 more
Caused by: com.android.ddmlib.ShellCommandUnresponsiveException
	at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:557)
	at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:383)
	at com.android.ddmlib.Device.executeShellCommand(Device.java:573)
	at com.android.ddmlib.SplitApkInstaller.install(SplitApkInstaller.java:86)
	... 12 more

To Reproduce

./gradlew clean cleanBuildCache bundleRelease
java -jar bundletool.jar build-apks --bundle=./bundle.aab --output=./my_app.apks --ks=./release.keystore --ks-pass=pass:[pass] --ks-key-alias=[alias] --key-pass=pass:[pass]
java -jar bundletool.jar install-apks --apks=./my_app.apks

Expected behavior I expect the app to be installed in my Nexus 6P like it does for the Asus Zenfone go.

Environment: OS: macOS high sierra 10.13.4

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
plecesnecommented, Jun 5, 2018

Sorry for the very basic suggestions, but could you try the following if you haven’t already:

  • Running adb devices and verify that the Nexus 6P is recognized.
  • Running adb kill-server before running the install-apks command.
1reaction
plecesnecommented, Dec 12, 2019

@rpattabi Please file a separate bug. Most likely your issue is unrelated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android APP Bundles apks can not installed by bundletool ...
I think I realy have signed my app bucause I use ./gradlew assembleRelease can get an normal apk and it can be installed...
Read more >
bundletool - Android Developers
To deploy your app from an APK set, use the install-apks command and specify the path of the APK set using the --apks=...
Read more >
App does not install from Play Store on devices with Android ...
Installing universal APK from Google Play Console works fine. Installing APK using bundletool works fine. I used the following commands:
Read more >
Project deploy OK in debug mode but failed in release mode.
Installation of the app failed. com.android.tools.build.bundletool.model.exceptions.CommandExecutionException: Installation of the app failed.
Read more >
Failed to install .apks (not apk) using Appium in C# on real ...
When I run the test, below error shows: An unknown server-side error occurred while processing the command. Original error: bundletool.jar ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found