Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • Possible duplicate of Inkscape: export xml for Android drawable resource directory Commented Dec 27, 2016 at 14:53
  • @Scribblemacher my problem is not converting an svg to a vector drawable, but rather my usage of "svg attributes" that are not supported by android. I wanted to know how to avoid using those attributes or how to replace them with supported ones. Commented Dec 27, 2016 at 14:58
  • I still think this is a duplicate. VectorDrawable is not an SVG. If you have an SVG, then it needs to go through some sort of conversion. It's up to that conversion program to map/transform the SVG into a VectorDrawable XML. It's matter of avoiding what isn't supported by your conversion toolchain, which could dozens upon dozens of things (the SVG standard huge). Commented Dec 27, 2016 at 15:07
  • For solving your actual problem them, I'd suggest trying to save as "Plain SVG" in Inkscape, which will remove non-standard content that's usually in the inkscape: namespace. It's possible that Android Studio is getting tripped up by namespaced data used by Inkscape in the default save format. Commented Dec 27, 2016 at 15:09
  • Thank you @Scribblemacher , this actually solved my problem. I didn't thought it would be that easy. For some reason I'm still getting the same error messages while importing to Android Studio, but it works this time. Thank you so much, I've already been looking for hours to fix this. Commented Dec 27, 2016 at 15:20