Role of in Andriod

What is the role of

R stands for is a abstraction between the java files and different resources which are placed in ‘res’ folder.In Android, is an auto-generated file by aapt(Android Asset Packaging Tool) that contains resource IDs for all the resources (such as strings, layouts, drawables, colours  etc) of res/directory.
Android studio automatically will generate when you delete R.jar file.Where present in Android studio?:-  In Android studio ,the is located in app/build/generated/source/r/debug .

Leave a Reply

Your email address will not be published. Required fields are marked *