Xamarin - Android的 - 的Visual Studio - 应用程序无法启动 [英] Xamarin - Android - Visual Studio - The application could not be started

查看:795
本文介绍了Xamarin - Android的 - 的Visual Studio - 应用程序无法启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作在Visual Studio 2012年使用Xamarin的Andr​​oid项目我最近从硬盘到固态硬盘升级,所以我重新安装了Windows和我所有的节目。

I was working on an Android project using Xamarin in Visual Studio 2012. I recently upgraded from an HDD to a SSD so I reinstalled Windows and all of my programs.

克隆我的Git仓库,并尝试运行我的设备上的应用程序后,我一直没能得到它运行。我能够开始一个新的Hello World项目,我得到的运行,但我不能让这个项目运行

After cloning my git repository and trying to run the application on my device, I have not been able to get it to run. I was able to start a new hello world project and I got that to run, but I can't get this project to run.

这是错误这样说:

应用程序无法启动。确保应用程序已经被安装到目标设备,并具有可启动的活动(MainLauncher = TRUE)。

此外,检查建设 - >配置管理器,以确保该项目被设置为部署该配置。

我已经寻找解决这一问题,但一直无法找到任何工作。

I have searched for a solution to this issue but have been unable to find anything that worked.

推荐答案

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

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

这篇关于Xamarin - Android的 - 的Visual Studio - 应用程序无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆