Reputation: 149
I have an svg
file (vector graphics) which opens fine in Internet Explorer, but fails when opening in Vector Asset studio
(part of android studio) with:
For input string: 2.85465in Exception while parsing XML file:
I think this is caused by the decimal point, where a comma is expected as the computer used has Dutch settings and "," is expected to be the decimal separator.
Where does Vector asset studio gets it's information for this and can it be changed locally?
Upvotes: 0
Views: 2459
Reputation: 22907
With this error in Vector Asset:
Could not generate a preview
Exception while parsing XML file:
Premature end of file.
With check I mean make sure the .svg will be parsed to xml with Vector Asset.
So I observed this error occurs when the image has tiny text and when using the .svg converter is likely to skip it.
Upvotes: 1
Reputation: 3161
Try removeing the in
or replace it by px
. Asset Studio doesn't seem to work with any other size declaration than px
.
There was a conversation on google groups, I think, that I recently read. Took the solution from there. Will add the link if I find it again.
// edit: found it: https://code.google.com/p/android/issues/detail?id=189654
Upvotes: 0
Reputation: 29285
SVG files are just text files, you can open them in any text editor (like notepad) and change their content as you like.
Upvotes: 0