Beginner Android why is “id” is “Unknown member” with R.id?

后端 未结 5 1010
无人及你
无人及你 2021-01-16 09:54

I\'m sure this is something dead simple as it\'s my first android app with code (the hello world example I did was just assigning a value to a string in XML). My problem is

5条回答
  •  无人共我
    2021-01-16 10:24

    Please make sure the xml file you pasted is called main.xml and under layout folder. And try to generate the R file again. That may help.

提交回复
热议问题