简体   繁体   中英

IntelliJ IDEA suddenly lost all class relations. Cannot resolve symbol

I committed and pushed my changes business as usual and packed my laptop. As I docked it at the office and opened IntelliJ IDEA again. All the project classes were shouting red. As in No classes were found, all imports were red, as in not found. The project builds and deploys as usual.

Every class reference just gives the error "cannot resolve symbol..." and is red. Even the most basic sch as @Inject annotation (javax).

I tried the usual tricks such as maven reimport to no avail. What should I do to fix this? Clone the project again?

Using mercurial repository with external GUI HgTortoise, IDEA version is 15.0.4

尝试文件->使缓存无效/重新启动

删除.idea文件夹和.iml文件,然后重新打开项目,就像我的情况一样。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM