I'm using svg format icons in my app. my application's minimum API level is 21 and target is 24. I knew that I can convert svg format icons into usual android vectors by android studio's "Vector asset" tool. ( which is accessible if you right-click on res/drawable directory -> new -> vector asset. )
Created vectors by this approach result well in android api higher than 21. but it causes app crashing in android 5 devices. though in google's documentation on vector assets it is said that vector assets are supported on api level 21 and higher.
Is there any idea that what can I do with this?
here's a sample of errors while app is trying to inflate an activity/fragment xml and a vector asset causes the crash:
android.view.InflateException: Binary XML file line #26: Error inflating class ImageView
Android api 21 app crash because of vector assets
757 views Asked by Arman Ramezanzadeh At
0