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