Are you supposed to check-in R.java file in to VCS?
-
29-09-2019 - |
Pergunta
Very basic question. I plan to do our builds via Hudson and have android apk files available for download there. Is R.java in the /gen directory something that you check-in with you VCS? Or is it something that needs to be ignored and android sdk will generate every time if it doesn't exist?
Solução
The entire gen
folder is automatically generated and shouldn't be checked into VCS.
Outras dicas
Nothing in gen should go into your repository. Add gen to your .gitignore to avoid mistakes/cluttered git status.
No, you don't have to include any of the gen/ files. You must exclude the gen directory itself, otherwise you could ran into problems when updating/committing to git or any other VCS.
You need to ignore this file. Ant build task create this file.