xamarin android开发调试错误

xamarin android开发调试错误,xamarin,xamarin.android,Xamarin,Xamarin.android,我在构建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, Cu

我在构建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?        

似乎Android.Support的版本缺失或无法使用。这通常可以通过清除包并再次下载来解决

要执行此操作,请执行以下步骤:

  • 从Android应用程序中删除所有软件包(包括表单)
  • 从NuGet添加Xamarin.Forms
  • 从NuGet添加Xamarin.Forms的操作将检索各种Android支持库的正确版本,包括抛出错误和/或丢失的版本

    请让我知道这是否解决了问题。  
    谢谢

    Android.Support的版本似乎缺失或无法使用。这通常可以通过清除包并再次下载来解决

    要执行此操作,请执行以下步骤:

  • 从Android应用程序中删除所有软件包(包括表单)
  • 从NuGet添加Xamarin.Forms
  • 从NuGet添加Xamarin.Forms的操作将检索各种Android支持库的正确版本,包括抛出错误和/或丢失的版本

    请让我知道这是否解决了问题。  
    谢谢

    您应该解释发生这种情况时您试图做什么,并粘贴一些代码。从我在这里看到的内容来看,您的解决方案组件中缺少了Android.Support.v7。单击Components,然后添加component,并搜索Android.Support.v7。我正在构建此基本代码,以显示“欢迎使用xamarin表单”命名空间App3{public class App:Application{public App(){//Application MainPage的根页面=新ContentPage{Content=new StackLayout{VerticalOptions=LayoutOptions.Center,Children={new Label{HorizontalTextAlignment=TextAlignment.Center,Text=“欢迎使用Xamarin Forms!”}}}}};}受保护的覆盖void OnStart(){//Handle when your app start}受保护的覆盖void OnSleep()你应该解释一下发生这种情况时你试图做什么,并粘贴一些代码。从我在这里看到的情况来看,你的解决方案组件中似乎缺少了Android.Support.v7。单击组件,然后添加组件,搜索Android.Support.v7。我正在构建此基本代码来演示“欢迎使用xamarin表单”命名空间App3{public class App:Application{public App(){//应用程序主页的根页=新内容页{Content=new StackLayout{VerticalOptions=LayoutOptions.Center,Children={new Label{HorizontalTextAlignment=TextAlignment.Center,Text=“欢迎使用Xamarin表单!”}};}受保护的覆盖void OnStart(){//Handle当应用程序启动时}受保护的覆盖void OnSleep()我试过这个,但它拉了相同的包,仍然得到相同的错误。唯一的区别是,我缺少的程序集是:Xamarin.Android.Support.Compat我试过这个,它拉了相同的包,仍然得到相同的错误。唯一的区别是,我缺少的程序集是:Xamarin.Android.Support.Compat