Android Studio。文件名必须以.xml结尾

I am trying to add icons to the action bar of my app. I have imported icons png files to the drawable folders. However, there is an error saying that the file must end with .XML. How do I fix this? enter image description here

评论
保莺莺
保莺莺

您必须将图像转换为XML。可以通过将图像导入为SVG来完成。

单击新的矢量资产,您将有两个选择; PSD和SVG。导入SVG文件,它将存储为XML文件。

点赞
评论