解决方法1 File->Invalidate Caches/Restart… 无效化缓存加重启,让IDEA重置加载配置 解决方法2 右键项目->Mark Directory as->Sources Root