Internal error parsing svg file in android studio

后端 未结 11 1625
借酒劲吻你
借酒劲吻你 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:44

    I solved the problem adding width and height to the svg tag.

    Example

    From

    
    

    To

    
    

    I guess Android Studio can't add vectors from svg files without mentioning the dimensions.

提交回复
热议问题