IntelliJ Cannot find declaration to goto----解决方案

按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.重新打开项目

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。