Prolog中不允许使用Android Studio矢量资产工具内容 [英] Android Studio Vector Asset Tool Content not allowed in prolog

查看:104
本文介绍了Prolog中不允许使用Android Studio矢量资产工具内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为其中一个带有徽标和我的公司徽标的应用创建启动屏幕.为了确保没有大小调整问题,我想使用SVG文件并使用内置的Android Studios工具创建矢量资产.

I am trying to create a splash screen for one of my apps with it's logo and my companies logo on it. To make sure I get no resizing problems I wanted to use SVG files and create a vector asset using the Android Studios built in tool.

但是,当我想使用 New> Vector Asset 然后使用 Local File 创建资产并提供SVG文件的路径时,出现以下错误:Error while parsing logo.svg: Content is not allowed in prolog.

However when I want to create an asset using New > Vector Asset and then Local File and provide the path to my SVG file I get following error: Error while parsing logo.svg: Content is not allowed in prolog..

我使用Paint和徽标PNG文件创建了SVG文件.我只是用相同的名称将文件另存为SVG.我将文件PNG和SVG都保存在 drawable 文件夹中.

I created my SVG file using Paint and my logos PNG file. I simply saved the file as SVG in the same path with the same name. I saved both files PNG and SVG in the drawable folder.

非常感谢您的帮助,在此先感谢您.

Any help is much appreciated, thank you in advance.

推荐答案

我解决了这个问题.

在Paint中打开PNG文件并将其简单地导出为SVG并不能解决问题. 我要求图形设计师将PNG文件转换为SVG,然后便能够使用内置工具轻松创建矢量资产.

Opening a PNG file in Paint and simply exporting it as SVG does not do the trick. I asked my graphic designer to convert the PNG files to SVG and then I was able to use the built in tool to create a vector asset with no effort.

这篇关于Prolog中不允许使用Android Studio矢量资产工具内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆