0

when we try to update our compiled app over the old app(installed from amazon store) on Kindle, we get this error:

Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]

We have verified versionCode that increased, the package name is the same. We think we signed with the same key.

Could please anyone help me? I am new to Android though.

Neelam Verma
  • 3,054
  • 1
  • 19
  • 31
  • `We think [...]` Verify. – Eugen Pechanec Dec 11 '19 at 20:16
  • @EugenPechanec: How to verify that both the old and new signing keys are the same? – Neelam Verma Dec 12 '19 at 01:33
  • Compare both APK certificates. How to print APK certificate: https://stackoverflow.com/q/53381230/2444099 Also make sure that if the old APK used signing scheme V2, the new APK also uses signing scheme V2. (You can't use `jarsigner` anymore.) More info: https://source.android.com/security/apksigning – Eugen Pechanec Dec 12 '19 at 07:43

1 Answers1

1

I saw this same error message when attempting to test the upgrade process of our application on Kindle devices accessing the Amazon App Store. I was locally building and signing the app and deploying via $ adb. I ensured that the build configuration was the same (i.e. -release) and that the version number had been incremented properly, but I was still receiving the error upon installation until the application was completely uninstalled. Forcing our users to uninstall for the upgrade was not an acceptable delivery mechanism.

Strangely, the issue did not occur when testing the same process on Samsung devices accessing the Google Play store. The source of the issue for me turned out to be the fact that Amazon removes your developer signing from uploaded .apk files and re-signs your built application with a different key store. Once our update got accepted for publishing, we were able to confirm that the upgrade worked as expected without having to uninstall the app.

Descartes
  • 520
  • 1
  • 7
  • 21