ConstraintLayout cannot be cast to android.widget.TextView

后端 未结 2 1089
庸人自扰
庸人自扰 2021-01-27 13:37

I keep getting a runtime error when I try to launch an activity.

Line where the error happen:

private OnItemClickListener mDeviceClickListener = new OnIt         


        
2条回答
  •  死守一世寂寞
    2021-01-27 14:36

    You just got wrong id for your constrain layout and mixed it up with textview that you have make declaration in MainActivity

提交回复
热议问题