I'm working on an update of the database, my new version is using ORMLite, so I have the playstore version on a device and I want to test if the data migration gonna works, so I connect my device and run the app from Android Studio but I get this error:
Installation failed with message INSTALL_FAILED_UPDATE_INCOMPATIBLE. It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?
The answers to this question are not applicable because the solution there is to remove the application, then install the new version. This question is about how to avoid uninstalling.