R.java file not updating with UI element's id

前端 未结 8 751
长情又很酷
长情又很酷 2021-01-04 02:03

I added some UI elements to the main.xml file in the res\\layout folder and when I try to access them through the call, R.layout.my_uielement, the UI element th

8条回答
  •  执笔经年
    2021-01-04 02:46

    Clean project works fine. In Eclipse if you just change some xml components, it doesn't always generate a new R file. Cleaning does it.

提交回复
热议问题