luberda-molinet / FFImageLoading

Image loading, caching & transforming library for Xamarin and Windows
MIT License
1.42k stars 377 forks source link

Vector Drawables cannot be displayed in Android #1414

Open AhmetCavus opened 4 years ago

AhmetCavus commented 4 years ago

🐛 Bug Report

When calling

CachedImageRenderer.InitImageViewHandler()

on the MainActivtiy, the Android Vector Drawables cannot be loaded in Xamarin Forms Image with the error message below:

ImageElementManager: Error loading image: System.BadImageFormatException: Not a valid bitmap

Expected behavior

It should be possible to load the Vector Drawables.

Reproduction steps

  1. Add Vector Drawables to the Android project
  2. Call CachedImageRenderer.InitImageViewHandler() in the MainActivity
  3. Use the Vector Drawable in the Xamarin Forms Image component

Configuration

Version:

Platform:

LennoxP90 commented 4 years ago

duplicate https://github.com/luberda-molinet/FFImageLoading/issues/1128