FFImageLoading icon indicating copy to clipboard operation
FFImageLoading copied to clipboard

Xamarin Forms 2.2 support

Open lecnierfreeman opened this issue 10 years ago • 49 comments

@daniel-luberda Hi,

Sorry to say that in indeed it's a FFImageLoading issue, but I think is an easy one, since in this new pre-release version of Xamarin.Forms they moved to Xamarin.Android.Support.v4(and Friends) to version 23.1.1.1 all you need to do is just re-build the nugget packages with that version.

For confirming that it's a FFImageLoading I tried removing all packages from my project, install lates pre-release of Xamarin.Forms 2.2.0.5-pre2, install again all packages that I was using except FFImageLoading and try to build, and It succeeded, then Add FFImageLoading and try to build, it failed with the errors I posted before. After that I created a new project, installed Xamarin.Forms 2.2.0.5-pre2, build succeeded, install FFImageLoading and Failed again. I was reading in the same post you point it out and people says they are having this issues with 3rd party libs that need to update their Xamarin.Android.Support.v4(and Friends) to version 23.1.1.1

Thank You

lecnierfreeman avatar Apr 18 '16 20:04 lecnierfreeman

@lecnierfreeman Thanks for the info. I didn't test alpha Xamarin.Forms yet. I'll give it a look soon.

daniel-luberda avatar Apr 18 '16 21:04 daniel-luberda

I can confirm and I just recompiled FFImageLoading.Forms.Droid w/ Forms 2.2.0.5-pre4 and all is back to normal. I think I'm gonna wait for you guys to release on NuGet with the update.

Awesome Work! Love this Plugin.

ryanherman avatar Apr 22 '16 00:04 ryanherman

@daniel-luberda I'm using XF 2.2.0.23-pre4 and having the same issues. I have Android Support library 23.3.0 and FFImageLoading 2.1.0-alpha1. Would really like to see a fix as soon as possible. @ryanherman Did you mean 2.2.0.5-pre2?

adrianknight89 avatar Apr 22 '16 01:04 adrianknight89

Xamarin Forms 2.2.0 stable just got released, any chance you can get a new nuget package out so we can use the new forms build in Android? Thanks :)

michaeldimoudis avatar Apr 27 '16 23:04 michaeldimoudis

Have same errors, as above. Can not get it to work with latest stable Forms build on Android. Shows multiple "missing resource" errors

ArtemZelinsky avatar Apr 28 '16 13:04 ArtemZelinsky

Upgraded xamarin forms to version 2.2, I can't build, same issue as others.

alicint avatar Apr 28 '16 15:04 alicint

This is really urgent. 2.2 is a stable release now and it doesn't build with FFImageLoading.

tobiasschulz avatar Apr 29 '16 08:04 tobiasschulz

@daniel-luberda Is it fixed in master?

molinch avatar Apr 29 '16 09:04 molinch

@molinch Yes, sort of. The XF packages aren't updated in the Master yet. But if you do update them and build, it's running fine. Currently running the new compiled version on beta's on iOS and Android for about a week now, without problems.

blocksninja avatar Apr 29 '16 10:04 blocksninja

Thanks for the feedback @timbrand !

Would you mind making a PR where you update all XF projects (lib and samples) to the latest version? Since I don't have VS it is complicated to update WP projects.

molinch avatar Apr 29 '16 10:04 molinch

@molinch I'll fix that and release alpha nuget now.

daniel-luberda avatar Apr 29 '16 13:04 daniel-luberda

Thank You, Thank You, Thank You, I've been waiting for this two weeks, couldn't build Android.

lecnierfreeman avatar Apr 29 '16 14:04 lecnierfreeman

FFImageLoading 2.1.0-alpha2 nuget with Xamarin.Forms 2.2.0.31 support released. If you have any problems, please write details here. Thanks.

daniel-luberda avatar Apr 29 '16 14:04 daniel-luberda

can confirm it works. but only after you add the references to the platform-specific project, too.

i'm pretty new to the xamarin-thing so i don't know if that's normal.

krisrok avatar Apr 29 '16 16:04 krisrok

At the moment, I'm getting a weird Exception in thread "main" error in COMPILETODALVIK or COMPILETODALVIK : UNEXPECTED TOP-LEVEL error

I noticed this might be the solution, but I haven't tried it yet: http://www.onthefencedevelopment.com/blog/2014/6/29/fixing-xamarin-compiletodalvik-build-error-in-vs2013

UPDATE: Upping the heapsize to 1G fixed the problem, but I'm not sure why I had to do that as I don't have GooglePlay packages.

adrianknight89 avatar Apr 29 '16 16:04 adrianknight89

@adrianknight89 TBH I don't know why you got this but it definitely seems to be a Xamarin or Android issue Thanks for posting the solution! It will be useful in case somebody else gets it in the future.

molinch avatar Apr 29 '16 18:04 molinch

@krisrok Yes that's the normal scenario :)

molinch avatar Apr 29 '16 18:04 molinch

I have done some testing over the past couple of hours. The XF2.2 version compiles/runs for me.

However, I am seeing some perf degradation in the alpha nugets compared to the original nugets. My observations: 1- Loading the images on start-up (from DiskCache I'm guessing) seems particularly slow as well. If I turn the app off/on there is always a long lag at the beginning until the images show up. This lag feels slower than what I had in the previous FF nugets.

2- Are the images loaded in a different order than before? Looks like some of the last ones now show up first. This could be what's causing the slowness perception.

Is this expected? Is it possible to revert to the "old" method of caching within this nuget?

patook avatar Apr 29 '16 21:04 patook

Does the latest build really depend on XF2.2? I have a lot of issues with XF 2.2 right now on Android so I am holding off on upgrading.

ravensorb avatar Apr 29 '16 21:04 ravensorb

@patook I created https://github.com/molinch/FFImageLoading/issues/188 for your issue it will be easier to continue there

molinch avatar Apr 29 '16 21:04 molinch