Button cannot be resolved to a type 解决方法
在PhoneActivity.java中添加 Button cMyButton=(Button)this.findViewById(R.id.id_Button);TextView cMyTextView=(TextView)
this.findViewById(R.id.id_TextView);时,提示错误信息: "Button cannot be resolved to a type " "Textview cannot be resolved to a type",只需要在
文件头加入 import android.widget.Button;import android.widget.TextView;即导入类Button,TextView即解决问题。