尝试初始化 FFImage 时(在我的应用程序中):
CachedImageRenderer.Init();
我得到了神秘的错误:
Unhandled Exception: System.TypeLoadException: Could not load list of method overrides occurred
我可以让 FFImage 示例应用程序正常运行。据我所知,我有所有的依赖项。
尝试初始化 FFImage 时(在我的应用程序中):
CachedImageRenderer.Init();
我得到了神秘的错误:
Unhandled Exception: System.TypeLoadException: Could not load list of method overrides occurred
我可以让 FFImage 示例应用程序正常运行。据我所知,我有所有的依赖项。
我是这个图书馆的作者。我忘了提高Xamarin.Forms
对 2.4.x 版本的依赖(计划在下一个版本中发布)。
如果使用 Xamarin.Forms < 2.4,您想使用 v2.2.25-legacy 预发布包版本。我去掉了快速渲染器。
https://github.com/luberda-molinet/FFImageLoading/issues/814#issuecomment-344677274
我必须将 nuget 包降级到 2.2.20 看到这个:
https://github.com/luberda-molinet/FFImageLoading/issues/788
我希望这可以帮助你
编辑:
我尝试使用 xamarin 表单 2.0.4.280 的 FFImageLoading 版本 2.2.24,在 iOS 中它就像一个魅力,但在 android 中它给了我这个异常(FFImageLoading:未处理的异常:System.TypeLoadException:无法加载发生的方法覆盖列表)。
那么我如何解决这个问题?只需将 xamarin 表单降级到以前的版本(2.3.4.224)并将 FFImageLoading nuget 包设置为 2.2.20
PD:请原谅我糟糕的英语
当我尝试在便携式和 Droid 项目中使用 2.2.25 时,我在 Android 中遇到了这个问题。修复是在 Droid 项目中使用 2.2.19。
便携的
Xamarin.FFImageLoading version="2.2.25"
Xamarin.FFImageLoading.Forms version="2.2.25"
机器人表格应用程序
Xamarin.FFImageLoading version="2.2.19"
Xamarin.FFImageLoading.Forms version="2.2.19"
我正在使用 Xamarin.Forms version="2.5.1.444934" 并使用 Android 8.1 (Oreo) 进行编译。我也在使用 Xamarin.FFImageLoading.Transformations version="2.2.9"。
我不知道为什么,但它有效。希望这对其他人有帮助。
我同样的问题。我将 Xamarin.Form 更新到 2.5 版并删除了所有 bin/obj 文件夹。它解决了。
https://github.com/luberda-molinet/FFImageLoading/issues/814#issuecomment-344677274
不要使用 2.2.23 到 2.2.25 的版本。使用 2.2.22。这是非常稳定的,也有最新的功能。希望这可以帮助。
使用 FFImageLoading 2.4.4.858-pre 版本。此版本修复您的错误。
意味着您的链接器已从编译的二进制文件中删除了糟糕的 ffimageloading 库。将链接器设置更改为“仅 SDK”。