Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

System.ObjectModel Warning Xamarin does not run on Android

Tags:

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

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

Error: The referenced component System.ObjectModel could not be found.

The errors can be seen in the screen shot below:

See screenshot

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

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

Any help would be appreciated.

like image 598
Neil Camilleri Avatar asked Jul 08 '16 15:07

Neil Camilleri


Video Answer


1 Answers

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.

like image 82
Jason Avatar answered Sep 19 '22 02:09

Jason