@override Gives Error In Eclipse?
Solution 1:
You're getting the error because you're using Java 1.5 which does not support @Override annotations for implementation overrides. Go into the Eclipse settings and set the language level to 1.6.
EDIT - to change the language level go To Project > Properties > Java Compiler and set the language level there. You may need to click to enable project specific settings.
Solution 2:
You probably have set your project language level to something below 1.5, where @Override was introduced. Or, you have it set below 6, and the project code uses @Override for methods implementing interface methods, which was only introduced in Java 6. Change your project language level.
Solution 3:
@Override
is not android specific but a java annotation. If you get errors you might have Java 1.5 selected in you eclipse/project settings. Change that to Java 1.6 or above and it should disappear.
Post a Comment for "@override Gives Error In Eclipse?"