Forum Xamarin Xamarin.Android

Error inflating class ImageView when use Vector image in api 19 with AppCompatActivity ?

TaiDucTaiDuc USMember ✭✭

Hi, Everybody, I'm facing with problem that Android can't inflating class ImageView.
Can you fix it for me
I try add
AppCompatDelegate.CompatVectorFromResourcesEnabled = true;
to MainApplication on method OnCreate()

And use app:srcCompat in ImageView, but can't fix it

I use Xamarin.Android.Support.Animated.Vector.Drawable ver 25.3.1

And this is my layout ImageView

But when I run in Android emulator Api 19, Error

It work fine in Api 22


Sign In or Register to comment.