Closed lichin-lin closed 3 years ago
Android Studio doesn't support SVG format. A designer must provide icons without masks.
Hi @subdan , so I installed Android Studio v4.0.2 and import the SVG icon, seems like the converting (to xml, it convert <mask>
into <clip-path>
tag) is working correctly:
I have check the vd-tool
that the repo is using, and it actually using v3.4.0
https://github.com/stasson/vd-tool#sources,
should the repo consider update the version for converting tool, so it can support more icon converting scenario.
Thanks. I will update vd-tool.
I've updated vd-tool from 3.4 to 4.1. Please check it again.
It works! thanks @subdan, all SVG icons that includes <mask>
tag can successfully convert into XML files :)
Cool!
Issue
some of the icons got bypass since the converting from svg to xml format failed.
Reproduce Step
Run the command
for this figma file & the yaml file:
the following error happened:
Somehow the icons have
<mask>
data in it, which AndroidStudio can not handle the converting. can we either provide svg format like:or figure out a way that can make the converting (svg to xml) success, thank!
Version
0.16.1