解决方案 1.File→Project Structure 2.project setting→modules 3.点击项目src目录 4.右键main→Sources,将选定目录设置为源码目录 5.查看右侧的源码目录