为什么不能在相同的包中解决类问题? [英] Why can't eclipse resolve class in same package?
本文介绍了为什么不能在相同的包中解决类问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在发生此问题之前,我做了什么:
- 我将* .class添加到.gitignore
-
git rm * .class
- 在下一次拉动时,git删除了.class文件的hunderts
可以解决它:
在另一个项目上(来自同一个git仓库),我在不同软件包中的几个文件上遇到同样的问题。我所要做的只是在文件中写一个空白区域,再次移除并保存,所以eclipse会重新编译它(我猜)。
某种一种奇怪的行为......:S
I hit F5 ~1000 times and restarted eclipse (also with -clean), deleted /bin, but nothing helps. Manually importing DoodleClient does not help. DoodleClient exists and is perfectly fine, everything worked before. Clicking on "Import 'DoodleClient' ..." does nothing.
What I did before this problem occured:
- I added *.class to .gitignore
git rm *.class
- On the next pull, hunderts of .class files were deleted by git
解决方案
I could resolve it: On another project (from the same git repo), I had the same issue on several files in different packages. All I had to do was writing a white-space into the file, remove it again and save, so eclipse would re-compile it (I guess).
Some kind of a strange behaviour... :S
这篇关于为什么不能在相同的包中解决类问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文