gpt4 book ai didi

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

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:25:46 24 4
gpt4 key购买 nike

我正在 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com