System.ObjectModel 警告 Xamarin 不能在 Android 上运行 [英] System.ObjectModel Warning Xamarin does not run on Android

查看:22
本文介绍了System.ObjectModel 警告 Xamarin 不能在 Android 上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在 Windows 8.1 环境中使用最新的 Xamarin 在 Visual Studio Enterprise 上运行欢迎使用 Xamarin"示例.

We are running the 'Welcome to Xamarin` example on Visual Studio Enterprise, using the latest Xamarin, in a Windows 8.1 environment.

我们正在设法在 Windows 和 Apple 上构建和运行,但我们在 Android 上遇到了问题.

We are managing to build and run on both Windows and Apple, but we are facing problems with Android.

错误:无法找到引用的组件 System.ObjectModel.

错误可以在下面的屏幕截图中看到:

The errors can be seen in the screen shot below:

看截图

我们已经尝试在网上搜索解决方案,我们找到了一些,我们尝试过,但无济于事.

We've already tried searching online for solutions, we found some, which we tried, but to no avail.

另一方面,Xamarin 是否与 Windows 8.1 兼容?也许某些 Android 需求实际上需要 Windows 10 环境.

On the other hand, is Xamarin compatible with Windows 8.1? Perhaps some Android requirement actually needs a Windows 10 environment.

任何帮助将不胜感激.

推荐答案

右键单击 Android 项目的引用并手动添加引用:C:Program Files (x86)Reference AssembliesMicrosoftFrameworkMonoAndroidv1.0FacadesSystem.ObjectModel.dll.从技术上讲,这是警告,而不是错误.

Right click on your Android project's references and manually add the reference: C:Program Files (x86)Reference AssembliesMicrosoftFrameworkMonoAndroidv1.0FacadesSystem.ObjectModel.dll. And technically that's a warning, not an error.

这篇关于System.ObjectModel 警告 Xamarin 不能在 Android 上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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