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.

Bundle tool "install apks" command isn't working

See original GitHub issue

Describe 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:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
plecesnecommented, May 21, 2018

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).

0reactions
DhiralKaniyacommented, Aug 20, 2019

Just want to add related resource here.

Bundle tool generate with keystore.

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
apk does not install after generated by bundletool
The only way is to install them is via a computer and a cable either via bundletool install-apks command (using the .apks files), ......
Read more >
Android App Bundle Part-2 : BundleTool | by Saurabh Patel
Open app/build.gradle and add the following inside the android {} block: bundle { ... Bundle tool " install apks” command isn't working.
Read more >
Build and release an Android app - Flutter documentation
Offline using the bundle tool; Online using Google Play. Build an APK; Install an APK on a device. Publishing to the Google Play...
Read more >
Road to App Bundle and Bundletool - Android in depth
The App Bundle can't be installed directly to an Android device. First it needs to be converted towards an .apks which can be...
Read more >

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