【发布时间】:2016-01-12 20:14:48
【问题描述】:
我一直在使用新的 gradle 插件 - 1.4.0-beta3 测试 Andorid Studio。
我一直在尝试导入我自己用 Inkscape 制作的矢量素材。但是我不断收到导入错误。错误消息在 svg 中包含许多不受支持的标签。
In mm_card.svg:
ERROR@ line 54 <defs> is not supported
ERROR@ line 56 <linearGradient> is not supported
ERROR@ line 58 <stop> is not supported
ERROR@ line 62 <stop> is not supported
ERROR@ line 66 <stop> is not supported
ERROR@ line 70 <stop> is not supported
ERROR@ line 74 <stop> is not supported
ERROR@ line 78 <stop> is not supported
ERROR@ line 83 <linearGradient> is not supported
ERROR@ line 85 <stop> is not supported
ERROR@ line 89 <stop> is not supported
ERROR@ line 93 <stop> is not supported
ERROR@ line 97 <stop> is not supported
ERROR@ line 102 <linearGradient> is not supported
ERROR@ line 104 <stop> is not supported
ERROR@ line 108 <stop> is not supported
ERROR@ line 113 <linearGradient> is not supported
ERROR@ line 115 <stop> is not supported
ERROR@ line 119 <stop> is not supported
ERROR@ line 123 <stop> is not supported
ERROR@ line 127 <stop> is not supported
ERROR@ line 131 <stop> is not supported
ERROR@ line 135 <stop> is not supported
ERROR@ line 139 <stop> is not supported
有人知道这是什么原因吗?是矢量资产工具中的错误吗?或者可能是 Inkscape 创建的 svg 有问题?还是不支持更复杂的 svg?
谢谢!
【问题讨论】:
-
这似乎是不允许的基本内容。大多数 SVG 将具有
元素,并且大部分 SVG 将具有线性渐变。 -
我遇到了从 CorelDraw 到 Android 矢量资产导入的问题。然后我找到了解决方案:尝试使用此工具将您导出的 SVG 转换为矢量:shapeshifter.design 如果它解决了您的问题
标签: android svg android-studio vector-graphics