Many people have the same problem, the R file. In my case, i have some differents packages from different projects, and then different R files. When i import all of theses packages into one, and all of R file and layouts, they(the R files) disappeared.
My question is : How i can fix this ? I had some manipulations, like the Clean method, but nothing change, and the R file never comeback 🙁
if this doesn’t help, you may have a bad file name or bad encoded string in your project.
Open the error file in the “gen” folder, scroll to the error.. if it’s a string, just change it. If it’s a bad file name, rename it.
Don’t use capitalized letters in file names other than classes, no spaces…
If you have a string in a UTF-8 required language, make sure your editor is set to UTF-8 in Window -> Preferences -> General -> Workspace -> Text file encoding.