INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package signatures do not match the previously installed version; ignoring

1

Hello!

I get this error when trying to generate a debug apk to update an application directly on the device:

  

Execution failed for task ': app: installDebug'.

     

com.android.builder.testing.api.DeviceException:   com.android.ddmlib.InstallException: Failed to finalize session:   INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package prensa.com signatures do   not match the previously installed version; ignoring!

I am sure that the version code and the name of the version were increased and the name of the package is the same.

In addition, the keystore and other keys are the same as those used previously.

Where is the error?

    
asked by Jhonmer Araujo 10.04.2018 в 19:35
source

1 answer

1

You should increase the versionCode to be taken as an update .apk but in this case it indicates that the signature is different.

It may be due to these causes:

  
  • The .apk is signed with a development keystore and the .apk installed with one of production or vice versa.

  •   
  • The .apk is signed with a development keystore and the .apk installed with a development keystore but another pc.

  •   
  • The .apk was installed with another session of your device and will not allow installing another version until it is uninstalled.
  •   

If the .apk was installed with another session of your device, you must enter from configuration to applications, look for the application, you will find this message:

click on the application and select the option "Uninstall for all users" ("Uninstall for all users).

    
answered by 10.04.2018 / 20:08
source