Could not find a method sendMessage(View) in the activity class

后端 未结 3 1437
野趣味
野趣味 2020-12-20 08:19

MainActivity.java

package com.example.myfirstapp;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.Edi         


        
3条回答
  •  鱼传尺愫
    2020-12-20 09:03

    It is because you need to implement implements android.view.View.OnClickListener in your class, therefore add the correct imports i.e. import android.view.View.

提交回复
热议问题