我正在进行数据库更新,我的新版本使用的是ORMLite,所以我在设备上有playstore版本,我想测试数据迁移要工作,所以连接我的设备并运行Android Studio中的应用程序,但我得到这个错误:INSTALL_FAILED_UPDATE_INCOMPATIBLE从PlayStore版本更新为AndroidStudio的新版本
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?
到this question的答案是不适用的,因为该解决方案有删除该应用程序,然后安装新版本。这个问题是关于如何避免卸载。
不是我downvote,但数据库版本的变化不会导致这个问题。当您更改数据库版本时,您的应用程序将安装好。 – Sufian
Duplicate - http://stackoverflow.com/questions/11891848/install-failed-update-incompatible-when-i-try-to-install-compiled-apk-on-device – Sufian
它可能发生,因为APK不是使用相同的签名签名(如果您从Play商店安装了应用程序并安装具有相同包名的调试APK,则会发生这种情况)。所以你应该尝试安装签名的APK。 – Sufian