Intellij IDEA 提示cannot find declaration to go to 解决方法

有时候我们在导入jar之后,idea点击某个方法的时候会提示"cannot find declaration to go to ",误以为是某些方法没有声明。那么这个时候我们可以把idea的项目清理一下缓存即可:

报的错误如下:

 Intellij IDEA 提示cannot find declaration to go to 解决方法_第1张图片

 

 方法一:

在项目下面点击右键,按照下图操作即可。

 Intellij IDEA 提示cannot find declaration to go to 解决方法_第2张图片

 

方法二:

 在idea上面点击“file”文件,按照下图操作清除缓存即可。

Intellij IDEA 提示cannot find declaration to go to 解决方法_第3张图片

你可能感兴趣的:(大数据,服务器,人工智能,IDEA,提示,Cannot,find,declaration)