1

为什么 IDEA 重命名 project 的本地文件夹名字后,里面无法访问同一个包里面的类了?

 3 years ago
source link: https://www.v2ex.com/t/800931
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  程序员

为什么 IDEA 重命名 project 的本地文件夹名字后,里面无法访问同一个包里面的类了?

  movq · 9 小时 58 分钟前 · 275 次点击

我有一个 project,里面有 module1, module2,每个 module 里面的 package 都是 com.a.b 这个名字

重命名 project 的本地文件夹,重启 idea,删除.idea 文件夹,再重启

之后,随便打开一个 module 里面的.java 文件,里面用到同一个包里面其它.java 文件的地方都报错说无法访问

把 project 文件夹名字改回去,又好了


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK