2015-10-14 26 views
15

Andorid Studio'yu yeni graper eklentisiyle test ediyorum - 1.4.0-beta3.Android Studio Vector Asset Alma Hatası - Desteklenmeyen Etiketler

Inkscape'de yapılmış kendi vektör varlıklarını almaya çalışıyorum. Ancak içe aktarma hataları almaya devam ediyorum. Hata iletisi, svg'de desteklenmeyen birçok etiket içerir.

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 

Bunun nedenini bilen var mı? Vektör varlık aracında bir hata mı var? Ya da belki Inkscape tarafından oluşturulan svgs ile ilgili bir sorun mu var? Veya daha karmaşık svgs desteklenmiyor mu?

Teşekkürler!

+0

Bu izin vermek için oldukça basit şeyler gibi görünüyor. Çoğu SVG, bir öğeye sahip olacak ve büyük bir SVG kesirinde doğrusal bir degrade olacaktır. –

+0

Ben CorelDraw den Android vektör varlık ithal bu sorun vardı. sonra çözüm bulmak: Bu araç ile vektörü ihraç edilen SVG dönüştürmek için deneyin: https://shapeshifter.design/ eğer sorun çözülmüş ise –

cevap

13

Android Studio'daki SVG içe aktarma özelliğinin bazı SVG özellikleri için yalnızca sınırlı desteği vardır.

their announcement video numaralı belgede belirtildiği gibi. İthalatçıyı geliştirmek istediklerini söylüyorlar.

Ayrıca, VectorDrawables'ta degradelerin desteklenmediğini de unutmayın.

+0

video olarak vektör kodu kopyalamak ve bazı değişiklikler appess alternatif nedir hatayı düzeltmek için – Killer

+1

Yol tanımını kopyalamak demek. 'öğesinin' d' özniteliğindeki değer. –

+0

VectorDrawables gradyanları desteklemez, ancak aynı efekti elde etmek için GradientDrawable'ı bir ImageView arka planı olarak veya LayerDrawable'ın bir parçası olarak kullanabilirsiniz. – Mark

İlgili konular