Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Xamarin.FFImageLoading SVG is not working on Android 11 & 12?

Xamarin.FFImageLoading SVG seems to not be working on Android 11 & 12.

For example, when I do Android Target to 11 Version, setting the SVG on Embedded Resource, with this code:

<ffimageloadingsvg:SvgCachedImage HeightRequest="12" Source="resource://DemoApp.Assets.Images.svgImage.svg" BackgroundColor="Transparent" Aspect="Fill" HorizontalOptions="FillAndExpand" VerticalOptions="Start"/>

This SVG works fine except on Android 11 & 12.

Could anyone please help to figure out why it's not showing on Android 11 & 12?

like image 665
udaya sankar Avatar asked Feb 02 '26 20:02

udaya sankar


1 Answers

It seems that it's a special issue on the Android 11, and the solution is add the reference of the skiasharp or update the nuget package skiasharp both in the android part and the forms part.

You can check the following link:https://github.com/luberda-molinet/FFImageLoading/issues/1526

like image 52
Liyun Zhang - MSFT Avatar answered Feb 04 '26 09:02

Liyun Zhang - MSFT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!