点击File -> Invalidate caches ,点击之后在弹出框中点击确认。
idea刷新项目、清除项目缓存
原文:https://www.cnblogs.com/wanlige/p/14749908.html