首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

remove @Override 异常

2012-09-29 
remove @Override 错误当工程导入的时候,有时候会出现这个错误,只要把@Override去掉就可以了。但是这样做麻

remove @Override 错误

当工程导入的时候,有时候会出现这个错误,只要把@Override去掉就可以了。但是这样做麻烦。引起的原因参考:

?

http://stackoverflow.com/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

?

remove @Override 异常

?

2:

右键你的工程->Properties->Java Compiler->Compiler compliance level:改为1.6

?

remove @Override 异常

?

?

?

?

热点排行