Failed to install I/O error?

DP
Daniel P
Abetech - Managed Services

Good Morning, 

I am trying to update several of our apps on our devices. I am getting a failure on some apps and it reads "Failed to install i/o error". I have tried repackaging the APK, Finding a different source for the APK and so far no luck. 

Is there a script available that I could include in my package build? A script to maybe uninstall the previous version of the package? I wonder if i am confusing the device on what it should install. 

4 years ago
Android
ANSWERS
MD
Matt Dermody Diamond Contributor
4 years ago

Yes, you can use a pre-install script in the package with an uninstall <bundle id> to remove any pre-existing versions. Note that this process will wipe out any app cache as it is a completely uninstall so that may have undesired results depending on the nature of the app that you're updating.

To otherwise cleanly upgrade to a new version of an app you need to use an app that has been compiled under the same bundle id, with, with an incremented compiled version, and compiled with the same signing signature as the original app. You then need to modify the existing Package containing that APK with the new APK version and increment the Package accordingly.