Button cannot be resolved to a type 解决方法

    技术2022-05-20  46

    在添加 TextView myTextView=(TextView)this.findViewById(R.id.myTextView); Button myButton=(Button)this.findViewById(R.id.myButton); 时,发生了"textview cannot be resolved to a type“错误,后在开头加入 import android.widget.Button; import android.widget.TextView; 即解决 shift+ctrl+o


    最新回复(0)