Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where gen/R.java should be created in Android Studio project?

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?

like image 642
Samuel Paz Avatar asked Apr 29 '26 08:04

Samuel Paz


1 Answers

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

like image 143
vishnu narayanan Avatar answered May 04 '26 16:05

vishnu narayanan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!