The method xxx() of type xx must override or implement a supertype method
2017-08-30 16:43
1036 查看
代码如下:
![](https://oscdn.geek-share.com/Uploads/Images/Content/202007/19/9fc1a09f0c234ff5cc2030c94622a12c)
就这么点代码,然后编辑器就报错了,报错的内容是
![](https://oscdn.geek-share.com/Uploads/Images/Content/202007/19/cc35302bd82385808c66fae30de4450b)
然后我就上网找各种方法解决,有说把Compiler compliance level从1.5改成1.6的,但是我本身的配置就是1.6啊,苦笑。。
还有说把方法上的@Override注解声明给去掉,我也试过了,然并卵。。
重新建一个工程文件也是这样,就在我将要放弃准备去吃饭下意识的保存了一下文件后,我发现错误就没有了!!!
所以,这个错误的解决方法就是,定义好抽象父类保存一下即可。(笑)
贴上没报错的代码
就这么点代码,然后编辑器就报错了,报错的内容是
然后我就上网找各种方法解决,有说把Compiler compliance level从1.5改成1.6的,但是我本身的配置就是1.6啊,苦笑。。
还有说把方法上的@Override注解声明给去掉,我也试过了,然并卵。。
重新建一个工程文件也是这样,就在我将要放弃准备去吃饭下意识的保存了一下文件后,我发现错误就没有了!!!
所以,这个错误的解决方法就是,定义好抽象父类保存一下即可。(笑)
贴上没报错的代码
相关文章推荐
- The method xxx of type xxx must override or implement a supertype
- The method xxx of type xxx must override or implement a supertype me
- The method execute() of type XXXX must override or implement a supertype method
- 解决The method onClick(View)... must override or implement a supertype method
- Java-implements方面(The method adduser(user) of type user_dao_pleme must override or implement a supe)
- Eclipse 报错The method xxx of type must override a superclass method、Description Resource Path Locati
- [Eclipse手册]错误The method xxx of type must override a superclass method
- @Override注解报错,The method xxx of type xxx must override a superclass method
- Java重写父类使用@Override时出现The method destroy() of type xxx must override a superclass method的问题解决
- The method of type must override a superclass method解决方式
- The method onClick(View) of type new View.OnClickListener(){} must override a superclass
- The method of type must override a superclass method解决方式
- eclipse:the method of type must override a superclass method
- The method onClick(View) of type new View.OnClickListener(){} must override a superclass
- The method OnActivityResult(int, int, Intent) of type MainActivity must override
- 报错The method *** of type *** must override a superclass method
- The method of type must override a superclass method解决方式
- annotation:@Override出现The method of type must override asuperclass解决方案
- The method of type must override a superclass method解决方式
- The method of type must override a superclass method解决方式