This is a common error that can come from several different sources:
- Error in one of the XMLs (even if it does not acknowledge);
- Do not save before Clean / Build;
- Some errors that are preventing the automatic generation of this file;
I have found a solution that has been "definitive" here for the people I work for.
EDIT: This form should be used as the last case if none of the above worked:
Since of course Eclipse generates the file and something was blocking this procedure, I chose to do it manually. I went to the directory (Agenda / gen / br / com / contacts / UI) (for example) inside the project folder, created a copy of BuildConfig and edited its name for R. Then I created a new project and copied the R code for copy. Lastly, in the contact agenda project, I gave Save, Clean and Build All so that the settings were updated and the errors (generated by the lack thereof) corrected. In this way, the new R class is adapted according to the requests of the created code.
I did not test in all possible ways, but it did for everyone I indicated. I do not know to what extent it is correct to do the procedures in this way, so please give me feedback if it does not work.