Error: Installation of the app failed on bundletool install-apks command
See original GitHub issueDescribe 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:
- Created 5 years ago
- Reactions:4
- Comments:15 (5 by maintainers)
Sorry for the very basic suggestions, but could you try the following if you haven’t already:
adb devices
and verify that the Nexus 6P is recognized.adb kill-server
before running theinstall-apks
command.@rpattabi Please file a separate bug. Most likely your issue is unrelated.