androidxamarinsvgffimageloading

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?


Solution

  • 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