Quick Answer: What Is the Use of R Java File in Android?
Contents Android R. Java Is an Auto-Generated File by Aapt (Android Asset Packaging Tool) That Contains Resource Ids for All the Resources of Res/ Directory...
Android R. java is an auto-generated file by aapt (Android Asset Packaging Tool) that contains resource IDs for all the resources of res/ directory. If you create any component in the activity_main. xml file, id for the corresponding component is automatically created in this file.
Which folder that R Java file is been kept?
R. java is the generated file by ADT or Android studio. It will be located under appbuildgeneratedsourcer directory.
Must Read
What is the R object in Android?
R is a static class that lists all your resources (usually defined in XML, but all available in your res folder). edit: According to here: The android java class cannot recognize the R file one of your classes might actually be importing the R. java class.