问题描述
我们正在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 Assemblies \ Microsoft \ Framework \ MonoAndroid \ v1. 0 \ Facades \ System.ObjectModel.dll.从技术上讲,这只是警告,而不是错误.
Right click on your Android project's references and manually add the reference: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.ObjectModel.dll. And technically that's a warning, not an error.
这篇关于System.ObjectModel警告Xamarin无法在Android上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!