开发者

Eclipse prevents compile on the basis of non-existent errors

I get:

Your project contains error(s), please fix them before running your application.

...when I try to compile and run my project.

Eclipse indicates no errors. The 开发者_运维知识库only warnings I have are asterisk imports.

Yes, I have tried cleaning and building the project, but to no avail.

The problem didn't even go away when I temporarily deleted the single source file I have (and then cleaned and built).

I've tried restarting Eclipse multiple times.

I doubt rebooting my computer will have any effect.

My Droid X is plugged in on USB for testing. Not sure if that would have any effect.

Things like these are really frustrating, I really appreciate the help.


See the problem by clicking Problems on bottom tab. If it's not there, open it by selecting window > Show View > Problems.

And paste the Error here, so I can know the real problem.. :)

Eclipse prevents compile on the basis of non-existent errors


Can't tell you why this is happening, but here are some things I'd try:

  • Close and reopen the project
  • Delete and re-import the project
  • Check that you're not filtering errors too narrowly (e.g. only selected resource)
  • Go into build configuration and check that there are no unresolved project and library dependencies


You can try to delete .settings file. And then delete you project from workspace and re-import. Maybe that helps but thats just a guess :/


I deleted the whole code and saved it in a seperate file. than save the empty file where the non-existing errors appear. now the problems are gone and you can copy the code back to the file :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜