Is R.java file generated by Android SDK on each compile or only when new resources are added using Eclipse? Do I need to put it under version control or not?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
R.javafile is generated during resource compilation byaapttool. You shouldn’t add it to source control system.Also, you should have noted the
genfolder whereR.javais placed. Your version control system should ignore this folder altogether, not onlyR.javafile inside it. Because this folder is deleted on clean build (not sure about eclipse, butantscript definitely deletes it).