IntelliJ IDEA

IntelliJ Cannot find declaration

2020-07-06  本文已影响0人  仔仔H

按Ctrl+左键,不能进入类或方法的解决办法,提示Cannot find declaration to go to

系统中已经有了该类库,还是找不到类提示


image.png

1、close the project in intellij.关闭项目
2、close intellij.关闭idea
3、go to the project folder and delete the .idea folder,去到项目所在目录,删除.idea文件夹
4、restart intellij and open the project (wait for the indexing to finish) and it would work.重新打开项目

上一篇 下一篇

猜你喜欢

热点阅读