简体   繁体   English

Android Studio中的异常解析Vector资产

[英]Exception parsing Vector Asset in Android Studio

I am getting issue while I try to generate Vector Asset from a SVG file contains in my local folder as per the new Android Studio version 1.4 support feature for Vector Drawables. 当我尝试根据Vector Drawables的新Android Studio 1.4支持功能从本地文件夹中的SVG文件生成Vector Asset时遇到问题。 I have attached the screenshot of the error I am getting as follows 我已附上以下错误的屏幕截图,如下所示

在此处输入图片说明

I am really confused and don't know how to proceed since Vector Drawable(SVG) support is new to me in Android. 我真的很困惑,不知道如何进行操作,因为Android新增了Vector Drawable(SVG)支持。 Any kind of help would be useful for me. 任何帮助都对我有用。 Thanks in advance. 提前致谢。

Note: The default Material Icon are working great but I am facing problem only while I try to import from Local SVG file 注意:默认的“ 材质图标”效果很好,但是仅当我尝试从本地SVG文件导入时才遇到问题

As I noticed and imported the svg to to the vectors , svg having path only is easily convertible to vector drawables. 正如我注意到并将svg导入向量中一样,仅具有路径的svg可以轻松转换为向量drawable。 There is certain limitation to the vector drawables as they only use the path (as denoted by d in svg) to draw a shape. 由于矢量可绘制对象仅使用路径(如svg中的d所示)绘制形状,因此存在一定的限制。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM