Search code examples
androiddelphifiremonkeydelphi-xe7delphi-xe8

Signing certificate error when update apk from XE7 to XE8


My Android apk was developed by XE7. Now I upgrade the project with XE8. The IDE report a signing certificate error when install the apk to Android device:

Unable to create process: Unable to install D:\GMTWork\SalesApp\Android\Release\SalesApp\bin\SalesApp.apk. Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]

Embarcadero's solutions are:

  1. Manually uninstall the previously-installed application from your Android device.
  2. Configure RAD Studio to perform a clean install every time that you run your application.

I think that these are not good solutions. Because my apk has been installed in many phones, I can't require the user to manually uninstall or do a clean installation.

So, who have a better solution? or can my apk use a same signing certificate?


Solution

  • can you try

    Project -> Options -> Provisioning -> New Keystore

    http://docwiki.embarcadero.com/RADStudio/XE8/en/Creating_a_Keystore_File http://docwiki.embarcadero.com/RADStudio/XE8/en/Create_a_new_Keystore/Alias