@Override must override a superclass method 问题

在eclipse导入android项目的时候,出现:
The method run() of type new Runnable(){} must override a superclass method

提示需要 remove ‘@Override’ annotation

网上找了一下解决办法,主要是jdk版本问题:
如果出现  The method *** of type *** must override a superclass method
右键项目属性》javaCompiler中的complier compliance level 将1.5 改为1.6。

也可以在window》preferences》java》compiler中的Compiler compliance level 修改为1.6。
————————————————
版权声明:本文为CSDN博主「dgdisme」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/ycwol/article/details/43015061

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章