3

I don't know if this folder is existent at my project. I have already executed my application but I'm not finding this folder at my project. Where is it usually located?

appersiano
  • 2,670
  • 22
  • 42
Samuel Paz
  • 235
  • 3
  • 10

3 Answers3

3

R.java will be automatically created for your project by android-studio once you build the project. You can find it at:

your_app_name/app/build/generated/source/r/debug/your_package_name/R.java

You might not be seeing that folder in the project explorer of android-studio, because by default it's set to Android view. Change it to Project view.

By default, project explorer shows Android view

Change it to Project View to have complete file view

vishnu narayanan
  • 3,813
  • 2
  • 24
  • 28
0

The generated folder is under build of your projects app module. Complete path of R for the debug is

AppName/app/build/generated/source/r/debug/packagename/R.java

Sanjeet A
  • 5,171
  • 3
  • 23
  • 40
0

You can find it in the directory :

app/build/generated/source/r/debug/package name

This file is automatically generated by the build process, so don't change it!

vishnu narayanan
  • 3,813
  • 2
  • 24
  • 28
appersiano
  • 2,670
  • 22
  • 42