| 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
I was having the same problem when importing svg directly from sketch into the android studio, I used this tool to convert it to vector drawable and then importing it.