Class must either be declared abstract or implement abstract method error

View.OnClickListener must implement the function onClick() otherwise your class should be abstract, so that you could implement your onClick() function in some child class. But in your case you have made a spelling mistake. It should be onClick() instead of Onclick();

Leave a Comment