Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The referenced component Mono.Android could not be found

I have the same problem...pls help me... I just installed the Xamarin and want to use vs2015 . When I create a new Blank App (Android) and I’m getting the following errors. How can I fix this? I reinstalled vs2015 and reinstalled Xamarin but I’m still getting the errors.

The referenced component ‘Mono.Android’ could not be found.

The referenced component ‘mscorlib’ could not be found.

The referenced component ‘System’ could not be found.

The referenced component ‘System.Core’ could not be found.

The referenced component ‘System.Xml’ could not be found.

The referenced component ‘System.Xml.Linq’ could not be found.

like image 362
Hosam Rehani Avatar asked Apr 03 '16 15:04

Hosam Rehani


2 Answers

For me, I just ran into this trying to build a project pulled from TFS on a new VS 2015 Update 2 install. Not sure what exactly fixed it but this is what I did:

  1. Download Android API 23 and 22 SDK from the SDK Manager and also updated all other items in SDK Manager (had to close and open it twice to get it totally up-to-date).

  2. Nuget Restore packages (this did not fully fix it).

  3. Followed these instructions where you go into all .csproj file in the solution and remove all mentions of nuget. Also do this in the solution file, but mine had nothing.

  4. Use Package Console and run Update-Package -Reinstall (of if you know these package were building just fine before, I ran ``Update-Package -Reinstall -IgnoreDependencies`) and choose the project if you want.

  5. Still had a couple errors from the Android Resource Designer file so did a build and everything was right in the world again.

like image 102
hvaughan3 Avatar answered Sep 28 '22 06:09

hvaughan3


For me it was a Mono.Android.dll version issue. I removed the reference, and added a reference to the right version.

like image 36
tretom Avatar answered Sep 28 '22 07:09

tretom