Ich habe getestet Andorid Studio mit dem neuen Gradle-Plugin - 1.4.0-Beta3.Android Studio Vektor Asset Import Fehler - Tags nicht unterstützt
Ich habe versucht, meine eigenen Vektor-Assets zu importieren, die in Inkscape erstellt wurden. Ich bekomme jedoch immer wieder Importfehler. Die Fehlermeldung enthält viele Tags in der SVG, die nicht unterstützt werden.
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
Weiß jemand die Ursache dafür? Ist es ein Fehler im Vektor-Asset-Tool? Oder vielleicht ein Problem mit SVGs erstellt von Inkscape? Oder werden kompliziertere svgs nicht unterstützt?
Danke!
Das scheint wie ziemlich grundlegende Dinge nicht zu erlauben. Die meisten SVGs haben ein Element, und ein großer Teil der SVGs wird einen linearen Gradienten haben. –
Ich hatte dieses Problem von CorelDraw zu Android Vektor Asset importieren. Dann finde ich die Lösung: versuchen Sie, Ihre SVG in Vektor mit diesem Tool konvertiert: https://shapeshifter.design/ Wenn es Ihr Problem –