解决办法:
- Open IntelliJ IDEA
- Select the File menu
- Select the Invalidate Caches / Restart... menu. Once selected you get a pop-up with a bunch of options.
- Select Invalidate and Restart and before doing that make sure you saved all your changes else it might delete some unsaved changes.
来源:oschina
链接:https://my.oschina.net/u/2619918/blog/617827