[英]Android app never fully uninstall - SQLite database remains
I'm using a sqlite database as an asset in my Android project that I'm trying to manually update, but my older version always comes back.我在尝试手动更新的 Android 项目中使用 sqlite 数据库作为资产,但我的旧版本总是回来。
On my Pixel 5 I tried to:在我的 Pixel 5 上,我尝试:
Delete the app before reinstalling from Visual Studio debugger.在从 Visual Studio 调试器重新安装之前删除应用。
Go in the phone's storage, find the app and delete cache and data, then proceed to uninstall and finally reinstall from Visual Studio. Go 在手机存储中,找到应用程序并删除缓存和数据,然后继续卸载,最后从 Visual Studio 重新安装。
Reboot the phone after uninstalling.卸载后重启手机。
In Visual Studio I tried to:在 Visual Studio 中,我尝试:
Cleaning entire solution & rebuilding it after deleting older database and after adding the new one.在删除旧数据库和添加新数据库后清理整个解决方案并重建它。
Do my first step, close Visual Studio delete Bin & Obj folders and relaunch VS.做我的第一步,关闭 Visual Studio 删除 Bin & Obj 文件夹并重新启动 VS。
Found that when reinstalling the app, my phone would use a backup it automatically did on my Google Drive.发现重新安装应用程序时,我的手机会使用它自动在我的 Google Drive 上进行的备份。
I had to delete the backup, and then it was working fine.我不得不删除备份,然后它工作正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.