当工程导入的时候,有时候会出现这个错误,只要把@Override去掉就可以了。但是这样做麻烦。引起的原因参考: http:///questions/3735661/bug-with-override-annotations-in-eclipse This is most likely because you are switching between Java 1.5 and Java 1.6. In 1.5 you couldn't mark interface implementations with @Override, but you can in 1.6. 也就是说1.5中不支持接口实现,那就需要改。 你需要改两个地方: 1:window->preferences->Java->Compiler->Compiler compliance level:改为1.6
2: 右键你的工程->Properties->Java Compiler->Compiler compliance level:改为1.6
|
|