How to make Android Studio automatically create Vector drawable from svg files?
The simple answer is: you can't.
There's no official way to auto-generate and I never found any 3rd party tool to automatic do the conversion.
But there're several other tools for such conversion that might be easier than using Android Studio.:
- Sketch plugin to export directly to XML: https://github.com/jacobmoncur/SketchVectorDrawable
- Online converter and offline batch converter: https://github.com/a-student/SvgToVectorDrawableConverter
- IntelliJ plugin: https://github.com/misakuo/svgtoandroid/blob/master/readme_en.md
The answer is: you can!!
And it is very easy! Just click right button on folder(drawable for ex.) and choose:
then choose:
and your got it!
(There are some restrictions: https://developer.android.com/studio/write/vector-asset-studio.html#PSD)