c# - "System.IO.FileNotFoundException: Could not load assembly ' Xamarin.Android.Support.v13 '"替换为支持库 v4 后

标签 c# android xamarin google-play-services android-support-library

我正在 Visual Studio 中使用 Xamarin.Android 项目,该项目具有以下组件 Azure 移动服务 1.1.0 版, Google Play 服务 (ICS) 13.0 版和 Android 支持库 v13 19.1.0 版。

当我尝试将组件更新到最新版本时 Azure Mobile Services 1.2.2 版、Google Play 服务 (ICS) 18.0 版和 Android 支持库 v13 版本 20.0。我收到有关 Android 支持库 v4 和 v13 之间的重复版本冲突的错误,因为 Google Play 服务版本 18.0 现在不包含 Android 支持库 v4。

现在我要解决的问题是删除 Android 支持库 v13,因为 v4 已经包含在内。

当我尝试构建项目时,输出中出现以下错误:

C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(863,2): error : Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'Xamarin.Android.Support.v13, Version=1.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(863,2): error : File name: 'Xamarin.Android.Support.v13.dll'
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(863,2): error :    at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(863,2): error :    at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(List`1 assemblies, AssemblyDefinition assembly, Boolean topLevel)
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(863,2): error :    at Xamarin.Android.Tasks.ResolveAssemblies.Execute()

我在项目的文件中找不到任何提及 Xamarin.Android.Support.v13.dll 的地方。

我的目标是该应用必须具有最新版本的 Azure 移动服务和 Google Play 服务,并且支持 API 15 或更高版本的设备。。 p>

最佳答案

我个人已经成功地使用了 android 支持库的 nuget 包,而不是组件商店中的组件(我认为它不再被维护了?)

关于c# - "System.IO.FileNotFoundException: Could not load assembly ' Xamarin.Android.Support.v13 '"替换为支持库 v4 后,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24805819/

相关文章:

android - 使用导航图范围 : NavController is not available before onCreate() 注入(inject) View 模型

c# - 如何在 Xamarin 表格 pcl 的网格中插入背景图像

c# - 以 yyyy-MM-dd 格式获取日期 c#

java - 为什么 Android Facebook Audience 网络即使在调用 destroy 方法后仍会泄漏 Activity ?

c# - 使用反射在结构和类之间复制等效属性

安卓 : Animate Rating Bar to expand and shrink each star

c# - 如何在 Xamarin.iOS 中将 BGRA 转换为 RGBA?

listview - Scrollview 中的 Xamarin Forms Listview 不滚动

c# - 如何编写正则表达式以在 C# 中使用正则表达式从字符串中获取子字符串?

c# - .NET MAUI 7 - AbsoluteLayout 中的按钮在 Android 中不起作用