android - FFImageLoading 库的链接器错误

标签 android xamarin

当我尝试使用 FFImageLoading 构建或调试应用程序时,我收到此错误:

1>D:\Programmi\visualstudio\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1696,5): error MSB4018: errore imprevisto dell'attività "LinkAssemblies".
1>D:\Programmi\visualstudio\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1696,5): error MSB4018: Mono.Linker.MarkException: Error processing method: 'System.Void FFImageLoading.Forms.Droid.CachedImageFastRenderer/ElevationHelper::SetElevation(Android.Views.View,Xamarin.Forms.VisualElement)' in assembly: 'FFImageLoading.Forms.Droid.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve System.Nullable`1<System.Single> Xamarin.Forms.PlatformConfiguration.AndroidSpecific.Elevation::GetElevation(Xamarin.Forms.IPlatformElementConfiguration`2<Xamarin.Forms.PlatformConfiguration.Android,Xamarin.Forms.VisualElement>)

我该如何解决这个问题?

最佳答案

  • 将目标框架设置为最新的
  • 将您的 Xamarin.Forms 版本更新到 2.5
  • 从所有项目中删除所有 binobj 文件夹
  • 重建

如果无法更新 Xamarin.Forms,请使用旧包:https://www.nuget.org/packages/Xamarin.FFImageLoading.Forms/2.2.25-pre-619-legac

关于android - FFImageLoading 库的链接器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47875159/

相关文章:

forms - Xamarin Forms 应用程序崩溃没有日志

ios - Application.Current.properties 在最新的 xamarin 表单版本中被破坏了吗?

android - 用于在android上上传文件的网络服务器

android - 可移植移动/平板电脑应用程序概念验证

android - 从 Google Play 游戏服务存储中获取玩家详细信息

c# - Prism依赖注入(inject)接口(interface)对象获取空值

xaml - 针对 Xaml 中的 Picker.Items 获取整数值

xamarin - 为什么应用程序处于中断模式?

android - 如何获取应用程序的所有授予权限

java - 使用 jack android 重新部署后生成的类出现 ClassNotFoundException