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

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

报的错误如下:

 

 方法一:

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

 

方法二:

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

猜你喜欢

转载自blog.csdn.net/lchmyhua88/article/details/121533377