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

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

    After 2 days I found a way to fix it...

    I had saved half done project in my mail, so when R.java vanished i just replaced it with the old R.java file, this fixed a lot of errors, then made necessary changes and built the project(build it not clean)...I do not know whether clean and build performs the same job or not..but everytime i cleaned it , R.java used to go invisible...

提交回复
热议问题