onClickListener cannot be resolved to a type and not applicable

前端 未结 5 2019

New to Java, using Eclipse. Except this error I also got some:

Description Resource Path Location Type The method onClick(View) of type new onClickListener

5条回答
  •  感动是毒
    2020-12-22 08:55

    // replace this code
     button2.setOnClickListener(new OnClickListener() {
                    @Override
                    public void onClick(View v) {
                    button2.setText("COŽE!?");
    

提交回复
热议问题