构建失败.MonoDroid 不支持运行以前的版本 [英] Build Failed. MonoDroid does not support running the previous version

查看:17
本文介绍了构建失败.MonoDroid 不支持运行以前的版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我第一个使用 MVMCross 的 Xamarin android 项目.从头开始.项目构建没有任何错误,但是当我尝试调试它时,我得到一个构建失败:MonoDroid 不支持运行以前的版本.请确保您的解决方案在运行或调试之前构建.

This is my first Xamarin android project with MVVMCross. Started from scratch. The project builds without any errors but when i try to debug it, i get a build failed: MonoDroid does not support running the previous version. Please ensure your solution builds before running or debugging it.

构建输出说:1>------ 部署开始:项目:Mobile.Droid,配置:调试任何CPU------1>错误:操作无法完成==========部署:0 成功,1 失败,0 跳过 ==========

Build output says: 1>------ Deploy started: Project: Mobile.Droid, Configuration: Debug Any CPU ------ 1>Error: The operation could not be completed ========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

Ide.log:错误 [2014-02-05 16:08:08Z]:无法更新跳转列表 System.InvalidOperationException:文件类型未在此应用程序中注册.在 Microsoft.WindowsAPICodePack.Taskbar.JumpList.AppendCustomCategories() 在 Microsoft.WindowsAPICodePack.Taskbar.JumpList.Refresh() 在 MonoDevelop.Platform.JumpList.UpdateJumpList() 在 MonoDevelop.Platform.JumpList.OnUpdateTimerEllapsed(Object sender, EventArgs args)

Ide.log: ERROR [2014-02-05 16:08:08Z]: Could not update jumplists System.InvalidOperationException: The file type is not registered with this application. at Microsoft.WindowsAPICodePack.Taskbar.JumpList.AppendCustomCategories() at Microsoft.WindowsAPICodePack.Taskbar.JumpList.Refresh() at MonoDevelop.Platform.JumpList.UpdateJumpList() at MonoDevelop.Platform.JumpList.OnUpdateTimerEllapsed(Object sender, EventArgs args)

我使用的是 Visual Studio 2012(更新 4)视窗 8Xamarin Studio 4.2.2Xamarin.Android 4.10.02014

I'm using Visual Studio 2012 (Update 4) Windows 8 Xamarin Studio 4.2.2 Xamarin.Android 4.10.02014

请帮助我,因为我已经花了一天时间试图解决这个问题.

Please help me cause i already spent a day trying to solve this issue.

推荐答案

原因可能是你没有启动任何虚拟设备来运行或调试你的应用.

请检查您是否可以在开始"按钮上选择一些 AVD.
在下一个示例中,我有两个运行的 android 模拟器:MonoForAndroid_API_10 和 MonoForAndroid_API_12:

The reason may be that you not launched any virtual devises for running or debugind your app.

Please check does you able to choose some AVD at your Start button.
In next example I have two runed android emulators: MonoForAndroid_API_10 and MonoForAndroid_API_12:

如果还没有,请执行以下步骤:

  1. 打开 Android 模拟器管理器:

  1. Open Android Emulator Manager:

选择设备并按开始.查看您选择的API 级别.这很重要.建议不要低于11级,10级以下可能会导致部署错误.

Choose device and press Start. Look at API level you selected. It is important. I recomend to select level not less than 11. Level 10 or lower may gives you error in deployment.

  1. 启动设计.现在您可以在运行或调试模式下启动您的应用程序.

这篇关于构建失败.MonoDroid 不支持运行以前的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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