1、打开 File | Project Structure(或者快捷键Ctrl+Alt+Shift+S) → Project Structure → Facets 2、点击" + " ,选中xml文件,OK。