I'm trying to use this for Android and am getting a build error in the MainActivity.cs for:
CachedImageRenderer.Init();
Error simply says: "Could not load list of method overrides"
There's a Stack Overflow post here that someone else posted the same issue: https://stackoverflow.com/questions/47211668/ffimageloading-unhandled-exception-system-typeloadexception-could-not-load-li
Has anyone seen this issue and could offer a solution? My linker settings are turned off, so it should be including the dlls properly. This is for FFImageLoading v2.2.25.
Thanks!
I can confirm that rolling back to v2.2.20 works fine.
I'm having the same issue with the v2.2.25 on Android. UWP and iOS working well.
It's just a simple static method: https://github.com/luberda-molinet/FFImageLoading/blob/master/source/FFImageLoading.Forms.Droid/CachedImageRenderer.cs#L33-L53
Anyone has an idea what is the cause?
Hey @daniel-luberda, how you doing? :)
I didn't get a chance to check it yet, try to debug and such. But based on what I have sawing lately it may be some nuget/toolchain hickup.
As for now, I'm trying to downgrade to some version that builds on VSTS and runs without this issue.
V2.2.20 runs perfectly without the problem, but won't build on VSTS.
One more update: If I run anything < 2.2.25 I end up hitting this issue here: https://github.com/luberda-molinet/FFImageLoading/issues/798
If I run 2.2.25 everything works fine on UWP and iOS but crashes on the Init() as pointed out.
@GiusepeCasagrande, as always, quite good, doing my things (focused on my small startup now), and you?
It looks like somehow a different versions of dlls are mixed in project. Is it possible? Why those conclusions? Between 2.2.22 and 2.2.23 there was a change of Init method on Android, it was changed from public static void Init() to public static void Init(bool? enableFastRenderer = default(bool?)). Are you sure you removed all bin/obj folders and have the same package version in all projects?
@daniel-luberda Nice to know. I'm fine, living a little closer to you now: Netherlands. We need to drink a beer together one these days, I'm paying ;)
I'm running one more test right now, let me conclude it and I'll try once again use the 2.2.25, clean it all, test it and get back to you.
Ok, just tried the 2.2.23 and the same error is occurring.
2.2.22 and below => Builds locally, runs fine, but won't build on VSTS.
2.2.23 and up => Builds locally, crashes on Init(), build on VSTS
I can create a sample to reproduce that if needed.
Same issue here. Tried deleting bin and obj folders. Verified that all assemblies are using 2.2.25 exclusively. Here is the diff based on what @GiusepeCasagrande reported above. https://github.com/luberda-molinet/FFImageLoading/compare/v2.2.22...v2.2.23#diff-3f6120c023adee0e9646d8c7271b4996
@daniel-luberda
So, a colleague of mine @winterdouglas figure out what is causing the problem: We are using Forms 2.3.x
Once we updated to 2.4.x the problem goes away.
Maybe would be good to raise the dependency on this packages to 2.4+
Sorry for the trouble and noise here :)
Good call. Thanks!
Sent from my iPhone
On Nov 14, 2017, at 5:06 PM, Giusepe Casagrande notifications@github.com wrote:
@daniel-luberda
So, a colleague of mine @winterdouglas figure out what is causing the problem: We are using Forms 2.3.x
Once we updated to 2.4.x the problem goes away.Maybe would be good to raise the dependency on this packages to 2.4+
Sorry for the trouble and noise here :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
@GiusepeCasagrande @winterdouglas Nice catch. I'll try if I can do something to be backward compatible, if not - I'll raise dependencies.
Nice to know. I'm fine, living a little closer to you now: Netherlands. We need to drink a beer together one these days, I'm paying ;)
@GiusepeCasagrande I'm visiting my friends who live there from time to time, maybe we'll have opportunity :) 👍 I'm in :)
If using Xamarin.Forms < 2.4 you want to use v2.2.25-legacy prerelease package version. I stripped fast renderer out of it.

Most helpful comment
If using

Xamarin.Forms < 2.4you want to usev2.2.25-legacyprerelease package version. I stripped fast renderer out of it.