Null pointer Exception - findViewById()

后端 未结 10 2961
情歌与酒
情歌与酒 2020-11-21 04:16

Can anyone help me to find out what can be the issue with this program. In the onCreate() method the findViewById() returns null for all ids and th

10条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-21 05:04

    The findViewById method must find what is in the layout (which you called in the setContentView)

提交回复
热议问题