我一直在用新的gradle插件 - 1.4.0-beta3測試Andorid Studio。Android Studio矢量素材導入錯誤 - 不支持的標籤
我一直在試圖導入我自己的矢量資產,在Inkscape中製作。但是我不斷收到導入錯誤。該錯誤消息包含許多不支持的svg標籤。
In mm_card.svg:
[email protected] line 54 <defs> is not supported
[email protected] line 56 <linearGradient> is not supported
[email protected] line 58 <stop> is not supported
[email protected] line 62 <stop> is not supported
[email protected] line 66 <stop> is not supported
[email protected] line 70 <stop> is not supported
[email protected] line 74 <stop> is not supported
[email protected] line 78 <stop> is not supported
[email protected] line 83 <linearGradient> is not supported
[email protected] line 85 <stop> is not supported
[email protected] line 89 <stop> is not supported
[email protected] line 93 <stop> is not supported
[email protected] line 97 <stop> is not supported
[email protected] line 102 <linearGradient> is not supported
[email protected] line 104 <stop> is not supported
[email protected] line 108 <stop> is not supported
[email protected] line 113 <linearGradient> is not supported
[email protected] line 115 <stop> is not supported
[email protected] line 119 <stop> is not supported
[email protected] line 123 <stop> is not supported
[email protected] line 127 <stop> is not supported
[email protected] line 131 <stop> is not supported
[email protected] line 135 <stop> is not supported
[email protected] line 139 <stop> is not supported
有誰知道這樣做的原因是什麼?這是矢量資產工具中的錯誤嗎?或者也許是由Inkscape創建的svgs問題?還是更復雜的SVG不支持?
謝謝!
這似乎是非常基本的東西,不允許。大多數SVG將具有元素,並且大部分SVG將具有線性漸變。 –
我從CorelDraw到Android矢量資產導入都有這個問題。然後我找到解決方案:嘗試將您的SVG導出到矢量與此工具:https://shapeshifter.design/如果它已解決您的問題 –