misakuo / svgtoandroid

Converting SVG to VectorDrawable
https://plugins.jetbrains.com/plugin/8103
MIT License
528 stars 45 forks source link

Plugin Error: SVG2VectorDrawable threw an uncaught StringIndexOutOfBoundsException. Disable Plugin #38

Closed furuiCQ closed 6 years ago

furuiCQ commented 6 years ago

解析该svg文件时,插件报错无法解析 <svg xmlns:svg="http://www.w3.org/2000/svg" version="1.1" id="图层_1" x="0px" y="0px" viewBox="0 0 30 60" xml:space="preserve" inkscape:version="0.91 r13725" sodipodi:docname="image049V.svg" width="30" height="60"> <style type="text/css" id="style3"> .st0{fill:#FF0000;} </style> <g id="XMLID_2_" transform="matrix(0,-0.5273794,0.49478488,0,0.6926123,5.337641)"> <g id="XMLID_22_"> <path id="XMLID_23_" class="st0" d="m 5.2,23.9 c 2.3,0 4.2,1.9 4.2,4.2 0,2.3 -1.9,4.2 -4.2,4.2 C 2.9,32.3 1,30.4 1,28.1 1,25.8 2.9,23.9 5.2,23.9 m 0,-1 c -2.9,0 -5.2,2.3 -5.2,5.2 0,2.9 2.3,5.2 5.2,5.2 2.9,0 5.2,-2.3 5.2,-5.2 0,-2.9 -2.3,-5.2 -5.2,-5.2 l 0,0 z" inkscape:connector-curvature="0" style="fill:#ff0000" /> </g> </g><rect id="XMLID_12_" x="-54.190472" y="1.1680011" transform="matrix(-0.30920468,-0.95099551,-0.80574442,0.59226339,0,0)" class="st0" width="44.086555" height="0.87834698" style="fill:#ff0000" /><g id="XMLID_3_" transform="matrix(0.67787665,0.71779185,-0.69884224,0.69625776,5.9196871,6.2052914)"> <path id="XMLID_20_" class="st0" d="m 14.6,7 22,10.8 -4.2,8.6 L 10.4,15.6 14.6,7 M 14.2,5.7 9.1,16.1 32.9,27.7 38,17.3 14.2,5.7 l 0,0 z" inkscape:connector-curvature="0" style="fill:#ff0000" /> </g> <path style="fill:none;fill-rule:evenodd;stroke:#ff0000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="m 15.59322,52.372881 c 0,7.796611 0,7.457627 0,7.457627" id="path4155" inkscape:connector-curvature="0" /> </svg>