android studio中构建失败:文件名必须以.xml或.png结尾

时间:2018-12-14 16:06:43

标签: android

我遇到了一个问题。我在res中创建了一个新的原始文件夹,并使用了打开的MP3文件,但是无法播放。在运行之前,Android Studio不会报告错误,但是在运行时,它会显示错误:文件名必须以结尾。 XML或。 png。

enter image description here

enter image description here

enter image description here

2 个答案:

答案 0 :(得分:0)

您在名为zmr.mp3的可绘制文件夹中有一个文件,将其删除

答案 1 :(得分:0)

1)在名为“ res”的文件夹中创建一个名为“ raw”的文件夹。 2)现在,将图像文件放在该“原始”文件夹中。