Search code examples
androidsvgvectorassets

Android Studio Vector asset always could not generate a preview


I want to use vector asset in android studio to generate svg xml file, I convert my png to svg in this web site
but when I use this svg file in vector asset to generate xml file, I get following error message

Picture


It display "could not generate a preview"
How can I fix it?


Solution

  • I've never had any luck with those convert sites. You're better off using photo tools to create an SVG. Make sure to follow the SVG guidelines from Android listed here