加载程序集Xamarin.Android.Support.v4时发生异常 [英] Exception while loading assemblies Xamarin.Android.Support.v4

查看:74
本文介绍了加载程序集Xamarin.Android.Support.v4时发生异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Xamarin.Forms 在Visual Studio上工作,出现以下错误:

I am working on visual studio with Xamarin.Forms, I get the following Error:

加载程序集时发生异常:System.IO.FileNotFoundException: 无法加载程序集'Xamarin.Android.Support.v4,Version = 1.0.0.0, 文化=中性,PublicKeyToken ='.也许它不存在于 Mono是否为Android个人资料?文件名:"Xamarin.Android.Support.v4.dll" 在 Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(AssemblyNameReference 参考,ReaderParameters参数) Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(ICollection`1 程序集,AssemblyDefinition程序集,布尔型topLevel) Xamarin.Android.Tasks.ResolveAssemblies.Execute()SportBook.Droid

Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile? File name: 'Xamarin.Android.Support.v4.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() SportBook.Droid

我该怎么办?

推荐答案

转到NuGet并更新 Xamarin Android支持库-v4 程序包,在某些情况下,您还需要更新 Xamarin .Forms 库,有关更多信息,请检查以下链接:

Go to NuGet and update Xamarin Android Support Library -v4 package, And in some cases you need also to update Xamarin.Forms Library, For more info check the following link:

https://forums.xamarin. com/discussion/26685/xamarin-forms-filenotfoundexception-xamarin-android-support-v4

这篇关于加载程序集Xamarin.Android.Support.v4时发生异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆