| got this error when try to generate a vector asset from local svg files from AndroidStudio 2.2, Ubuntu 14.04
Could not generate a preview
In icon.svg
ERROR@ li
Your SVG uses a
and, to make the faint shadow, it uses an SVG filter (
). Neither of these are supported by VectorDrawables. So any solution would involve removing those.
It looks like the file was created in Sketch. You can try removing those items in Sketch and trying the import again.
If that still doesn't work then you may have to manually fix the other element that is not supported by the importer: . The good news is that it is easy to work around.
I've included a manually edited version of the file below that fixes those three issues. It should import into Android Studio okay, but I don't know whether it meets your aesthetic needs or not.