2017.7.10 Package name does not correspond to the file path


參考來自:https://stackoverflow.com/questions/26440623/package-name-does-not-correspond-to-the-file-path-intellij

 

突然出現這個錯誤:Package name does not correspond to the file path

明明路徑沒有錯,從VCS上更新了代碼,也仍然報錯。

 

檢查后發現:需要強制更新代碼。因為有人把文件夾的名字從 Listener改為了 listener。所以不是編譯器無法識別,就是代碼路徑不對。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM