FindViewById() not finding View

前端 未结 6 1753
青春惊慌失措
青春惊慌失措 2020-12-06 12:09

Just added a new button to my already-working-fine layout, but the findViewById function seems to be angry with something I don\'t get to understand.

Here\'s a bit o

6条回答
  •  误落风尘
    2020-12-06 12:34

    Make sure to go through these processes.

    1: Make sure you imported your project R file.

    import packagename.R
    

    2: Clean your project

    3: If the above two solutions doesn't work, do invalidate your cache and restart

提交回复
热议问题