【问题标题】:"System.IO.FileNotFoundException: Could not load assembly 'Xamarin.Android.Support.v13'" After replacing with support library v4“System.IO.FileNotFoundException:无法加载程序集 'Xamarin.Android.Support.v13'” 用支持库 v4 替换后
【发布时间】:2014-09-08 11:01:25
【问题描述】:

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

当我尝试将组件更新到最新版本时 Azure 移动服务 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>

【问题讨论】:

  • 您是否尝试过清理解决方案并重新构建它?看起来这些项目源文件问题之一是不时发生的。
  • 是的,每次我尝试构建时,我都会先清理它
  • 这里回答了同样的问题stackoverflow.com/questions/17557097/…

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


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-05-28
    • 1970-01-01
    • 2023-02-07
    • 1970-01-01
    相关资源
    最近更新 更多