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

后端 未结 7 1629
逝去的感伤
逝去的感伤 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条回答
  •  猫巷女王i
    2021-02-19 05:09

    I had the same problem. I found the solution writing well the import.

    I replaced

    import android.content.DialogInterface.OnClickListener; //(wrong)
    

    for

    import android.view.View.OnClickListener;
    

提交回复
热议问题