先在工程下的src目录下的main目录下新建一个名称为resources的目录(Directory) 右键单击工程名称,选择Open Module Settings 选择Source,点开src目录下的main目录,选择resources,再点击Resources,最后Apply