I am trying to upload SVG file which was exported from Inkscape
in Android Studio using Vector Asset
but unfortunately I' ve got following error:
ERROR @line 35: Gradient has no stop info
Code where gradients are defined:
<defs
id="defs11210">
<linearGradient
inkscape:collect="always"
id="linearGradient11815">
<stop
style="stop-color:#69aeed;stop-opacity:1"
offset="0"
id="stop11811" />
<stop
style="stop-color:#66e6b2;stop-opacity:0.90909094"
offset="1"
id="stop11813" />
-->
</linearGradient>
<radialGradient <!-- LINE 35-->
inkscape:collect="always"
xlink:href="#linearGradient11815"
id="radialGradient928"
cx="99.615288"
cy="233.88142"
fx="99.615288"
fy="233.88142"
r="80.842598"
gradientTransform="matrix(1,0,0,1.3440437,0,-80.46542)"
gradientUnits="userSpaceOnUse" />
</defs>
I guess xlink:href="#linearGradient11815"
cause the problem but I don't understand why Android Studio would not be able to recognize that stop info is in reference.
Thanks in advance.
I changed syntax as Moini suggested but still it doesn't work:
<stop stop-color="#69aeed"
stop-opacity="1"
offset="0" />
<stop stop-color="#66e6b2"
stop-opacity="0.90909094"
offset="1" />
stop-color
but it still doesn't work. Could you please take a look at it? – Paweł Bęza Aug 9 '19 at 13:55