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

按Ctrl+左鍵,不能進入類或方法的解決辦法,提示Cannot find declaration to go to

系統(tǒng)中已經(jīng)有了該類庫,還是找不到類提示


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.重新打開項目

?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發(fā)布,文章內容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。