
This is starting to drive me crazy. I’m developing an android project and as one might expect, I make errors every once in a while. Eclipse shows me the errors in the “Markers” panel. The problem is, when I fix the errors, they don’t disappear from the panel. If I try to debug, it tells me my application has errors and I need to fix them.
If I select Project -> Clean, all the errors disappear. This, however, is starting to become a real pain when I have to do it every few minutes.
I have Build Automatically checked, and when I save I wait a few seconds to make sure everything has had time to adjust, but the errors remain.
Anyone else having this problem? Anyone know a fix?
Version: Juno Release
Build id: 20120614-1722
ADT: 20.0.0.v201206242043-391819
Edit: This has been fixed in ADT 20.0.1, so please update your Eclipse plugin.
This is a bug in Android Lint in ADT 20. It “holds” Java related errors from the JDT, if you hit the save button at a time where a Java syntax error is present.
You can hit the “Remove all warnings” button in the Android Lint view to get rid of those wrong warnings. Lint will re-create the correct warnings during the next run. If you really get that problem every some minutes, your best bet is to disable Android Lint until the next release (the bug has been fixed in the ADT developer build).