Inconsistence between SVG file and Android Studio vector asset -


i'm using sketch software build svg images use in android project. i'm having issue one:

enter image description here

as can see, picture ok , checked previews chrome , macos preview.

when try import svg in android studio import preview following:

enter image description here

the subtracted circles inside filled ones gone. import log messages me this:

in ic_percent.svg: warning@ line 10 don't scale stroke width! warning@ line 11 don't scale stroke width! warning@ line 12 don't scale stroke width! warning@ line 13 don't scale stroke width! 

does know happening import?

i had similar issues when importing .svg file made inkscape. seems attributes not supported android studio importer.

the easiest way found use svg2android. not sure how handles sketch .svg seem trick files inkscape.

if else uses inkscape don't forget set document size vector size "file -> document properties..." or edit directly in file text editor.


Comments