Internal error parsing svg file in android studio

后端 未结 11 1508
借酒劲吻你
借酒劲吻你 2020-12-28 12:23

Start from this month, I was not able to import any svg file though Vector Asset in my laptop, I always get the msg \'Internal error parsing abc.svg\'

I tried to imp

11条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-28 12:31

    Hi you have to convert all float number to integer. for example open .svg file in text editor

     width="292.362px" height="292.362px" viewBox="0 0 292.362 292.362" style="enable-background:new 0 0 292.362 292.362;"
    

    change to

    width="292px" height="292px" viewBox="0 0 292 292" style="enable-background:new 0 0 292 292;"
    

提交回复
热议问题