Bundle tool "install apks" command isn't working
See original GitHub issueDescribe the bug
Bundle tool install apks command isn’t working bundletool install-apks --apks=my_app.apks
Bundletool version(s) affected Version: [e.g. 0.3.3]
Stacktrace
11:03:02 E/SplitApkInstaller: Failed to finalize session : INSTALL_PARSE_FAILED_NO_CERTIFICATES: Package /data/app/vmdl1034936521.tmp/0_universal has no certificates at entry AndroidManifest.xml [BT:0.3.3] 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$4(InstallApksCommand.java:138) 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:122) 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: Failed to finalize session : INSTALL_PARSE_FAILED_NO_CERTIFICATES: Package /data/app/vmdl1034936521.tmp/0_universal has no certificates at entry AndroidManifest.xml at com.android.ddmlib.SplitApkInstaller.install(SplitApkInstaller.java:91) at com.android.ddmlib.Device.installPackages(Device.java:926) at com.android.tools.build.bundletool.device.DdmlibDevice.installApks(DdmlibDevice.java:92) ... 10 more
To Reproduce
- Generate the andorid app bundle
- Generate apk archive set
- Try to install the from apk archive set and it’s giving the above error.
Known workaround
- Do I have to sign my apk?
- What’s the recommended way if I want to install the debug application from APK set archive without signing it.
Environment: OS: MAC OS High Sierra : 10.13.4 Device : Pixel 2XL
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (3 by maintainers)
When building the APK Set, set the
--ks
and--ks-key-alias
flags to ensure that the APKs are signed. Only signed APKs can be installed on a device.The Android SDK should come with a debug keystore. Try looking under
~/.android/debug.keystore
(alias: AndroidDebugKey, pwd: android).Just want to add related resource here.
Bundle tool generate with keystore.