FFImageLoading: Unhandled Exception: System.TypeLoadException: Could not load list of method overrides occurred

Viewed 3427

When trying to init FFImage (in my application):

CachedImageRenderer.Init();

I get the mysterious error:

Unhandled Exception:  System.TypeLoadException: Could not load list of method overrides occurred

I can get the FFImage sample app to run okay. I have the dependencies all in order as far as I can tell.

7 Answers

I have to downgrade nuget packages to 2.2.20 see this:

https://github.com/luberda-molinet/FFImageLoading/issues/788

I hope this helps you


EDIT:

I tried FFImageLoading version 2.2.24 with xamarin forms 2.0.4.280, in iOS it works like a charm, but in android it gives me that exception (FFImageLoading: Unhandled Exception: System.TypeLoadException: Could not load list of method overrides occurred).

So how I get arround this ? just downgrade xamarin forms to previous version (2.3.4.224) and set FFImageLoading nuget package to 2.2.20

PD: Excuse my poor english

I had this issue in Android when I tried to use 2.2.25 in both the Portable and the Droid Project. The fix was to use 2.2.19 in the Droid Project.

Portable

Xamarin.FFImageLoading version="2.2.25"
Xamarin.FFImageLoading.Forms version="2.2.25" 

Droid Forms app

Xamarin.FFImageLoading version="2.2.19"
Xamarin.FFImageLoading.Forms version="2.2.19" 

I am using Xamarin.Forms version="2.5.1.444934" and compiling with Android 8.1 (Oreo). I'm also using Xamarin.FFImageLoading.Transformations version="2.2.9".

I have no idea why, but it works. Hope this helps someone else.

Means your linker has cut the poor ffimageloading lib from the compiled binary.. Change linker settings to "SDK only".

Don't use the version 2.2.23 to 2.2.25. Use the 2.2.22. This is very stable and also has the latest features. Hope this helps.

Use FFImageLoading 2.4.4.858-pre version.This version fix your error.

Related