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

2017.7.10 Package name does not correspond to the file path

 

突然出现这个错误:Package name does not correspond to the file path

明明路径没有错,从VCS上更新了代码,也仍然报错。

 

检查后发现:需要强制更新代码。因为有人把文件夹的名字从 Listener改为了 listener。所以不是编译器无法识别,就是代码路径不对。

 

相关文章:

  • 2021-07-03
  • 2021-05-28
  • 2021-10-27
  • 2022-02-23
  • 2021-10-30
  • 2022-12-23
  • 2021-12-17
  • 2021-08-11
猜你喜欢
  • 2021-08-15
  • 2021-08-07
  • 2022-12-23
  • 2021-07-02
  • 2021-05-18
相关资源
相似解决方案