The method onClick(View) of type oddg must override a superclass method?

后端 未结 7 1603
逝去的感伤
逝去的感伤 2021-02-19 04:23

I am occurring error like:

\"The method onClick(View) of type oddg must override a superclass method\".

I am confused where exact

7条回答
  •  一生所求
    2021-02-19 05:01

    Read about @Override annotation. It means, that once you have annotated the method with @Override, the compiler checks if it really an overrided method, and shows an error if its not.

    Also, you have to have Language Level 6 in order to use it with interface implementing methods. In IDEA you can do it via Project Setup.

提交回复
热议问题