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

前端 未结 8 831
长情又很酷
长情又很酷 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:52

    Clean is working because it BUILD the project after cleaning. So the problem is ( at least it was in my case, because I switched off the Automatic Build a few days earlier ) that after you add an item or anything in a .xml file, the eclipse doesn't build it and can't refresh the R.java .

提交回复
热议问题