Już tego próbowałem tylko w inny sposób. W pliku build.grandle zmieniłem:
versionCode
versionName
Ale niestety nic to nie pomogło. Przy próbie debugowania dostaje komunikat:
"Installation failed with message INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package signatures do not match the previously installed version; ignoring!.
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?"
Wiem że odinstalowanie starej wersji umożliwi mi instalacje nowej ale tak jak pisałem wcześniej zależy mi na danych ze starej wersji.