我在构建xamarin.android时看到了这个错误:
Severity Code Description Project File Line Suppression State Error Exception while loading assemblies:
System.IO.FileNotFoundException: Could not load assembly 'Xamarin.Android.Support.v7.RecyclerView, Version=1.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'Xamarin.Android.Support.v7.RecyclerView.dll' at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters) at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(ICollection`1 assemblies, AssemblyDefinition assembly, Boolean topLevel) at Xamarin.Android.Tasks.ResolveAssemblies.Execute() App3.Droid?
答案 0 :(得分:2)
似乎Android.Support版本缺失或无法使用。这通常可以通过清除包并再次下载来解决。
为此,请按照以下步骤操作:
从NuGet添加Xamarin.Forms的行为将检索各种Android支持库的正确版本,包括那些抛出错误和/或丢失的库。
如果这样可以解决问题,请告诉我。 谢谢!