如图
其实解决方案特别简单。
fild->Invalidate Caches / Restart.
确定
- 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.
转自
http://stackoverflow.com/questions/15991561/intelli-j-idea-takes-forever-to-update-indices