I am using a vector image (svg) as a background in one layout. I added it with the menu
File -> New -> Vector Asset...
and I have it as an .xml in my drawable folder.
When I generate the .apk file and install the app, when I go to the screen that has this layout with this image as background it crashes the app in some devices, throwing the error
android.content.res.Resources$NotFoundException.
However, in other devices it works perfectly. For instance, it works with Android version 7.1.1, but crashes with version 8.
I know it may crash in devices with an Android version previous to Lollipop (5.0) but I am only testing with 6.0 and higher.
Has anyone face this issue?
Thanks in advance.