且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Xamarin - Android - Visual Studio - 应用程序无法启动

更新时间:2021-11-16 03:29:08

我解决了这个问题.不知何故,该应用程序仍然存在于我的设备上,即使它没有出现在我的应用程序中,我需要将其删除.

I solved the issue. Somehow the application still existed on my device even though it did not show up in my applications and I needed to remove it.

解决方案是找到我通过电子邮件发送的旧 APK 并安装了它.然后我卸载了该应用程序并从 Visual Studio 再次部署它.这次成功了.

The solution was to find an old APK that I had emailed and I installed that. Then I uninstalled the application and deployed it again from Visual Studio. This time it worked.

您可以在此处阅读更多信息:https://forums.xamarin.com/discussion/8501/install-failed-update-incompatible

You can read more here: https://forums.xamarin.com/discussion/8501/install-failed-update-incompatible

编辑(2017 年 3 月 13 日):

似乎很多人发现这个答案很有用,所以我决定如果您无法访问旧版本,我应该使用替代方法更新它以卸载应用程序.

Seems a lot of people found this answer useful so I decided I should update it with an alternate method to uninstall the app if you don't have access to an old version.

正如 Atul Chaudhary 和 Nestel 提到的,您可以打开 adb 命令提示符并运行 adb uninstall .如果您的应用程序仍有任何残余,则应将其清除.

As Atul Chaudhary and Nestel mentioned, you can open up your adb command prompt and run adb uninstall <com.your.application.package.name>. If there are any remnants of your application which remain this should get rid of them.