How to use Android Studio's SVG-to-VectorDrawable converter from the command line
Since the very beginning, one of the most annoying aspects of using VectorDrawable
s on Android has been the lack of a reliable SVG converter. Google has recently made huge strides towards improving Android Studio’s SVG-to-VectorDrawable
tool in order to improve this experience.
However, there has always been one major issue for me: the tool doesn’t support batch conversion of SVGs and can’t be invoked from the command line. Working at Lyft, it’s not uncommon for me to need to convert hundreds of SVGs into VectorDrawable
s at a time. Having to go through Android Studio’s GUI in order to convert each SVG one-by-one is simply not realistic.