I am occurring error like:
\"The method onClick(View) of type oddg must override a superclass method\".
I am confused where exact
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.