Button cannot be resolved to a type 解决方法

来源:互联网 发布:网络版点歌软件 编辑:程序博客网 时间:2024/06/05 10:49

Button button = (Button)this.findViewById(R.id.button);

书写上句话时候总是报错Button cannot be resolved to a type,import android.widget.Button;即可解决。

原创粉丝点击