I am creating xamarin.forms application to work on android, ios and windows platform. my application is working well when i run the xamarin.UWP project but if I try to run the xamarin.android project its giving me the error as
Severity Code Description Project File Line Suppression State
Error The "ResolveLibraryProjectImports" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'Windows.Foundation.UniversalApiContract.winmd, Version=0.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'Windows.Foundation.UniversalApiContract.winmd.dll'
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(String fullName)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Extract(DirectoryAssemblyResolver res, ICollection
1 jars, ICollection1 resolvedResourceDirectories, ICollection
1 resolvedAssetDirectories, ICollection1 resolvedEnvironments)
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() GSTKhata.Client.Android
I tried cleaning and rebuilding the solution lot many times and even my project path is small but it doesn't helped. Can anyone help me to solve this?
also, can anyone tell me how can I run my xamarin.forms application on all three platforms(ios, android, windows)?