While trying to introduce enums in my Android project in Eclipse, I encountered with the following problem: Compiler says:
Close project the project with the error.
Open a different project and launch in emulator. Close the alternative project.
Open the original project with the error which should no longer be evidenced.
Don't know why it works or if actually launching the app is necessary but it clears the error .
Hopefully the error will be resolved ...
Open the properties for the project, select the page "Java Compiler" and set the "Compiler Compliance level" to "1.5" or better.