Where is the R.java file in Android Studio?

流过昼夜 提交于 2019-11-29 06:05:57

问题


Where is the R.java file in Android Studio? Can someone please help with this? I already tried google for the answer but can't find any solution.


回答1:


I use Android Studio 3.3.2

\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\android\support\constraint\R.java




回答2:


I use Android Studio 2.3.3. The R.java file is shown in the picture above.

In the left upper side, there is a select list. Select the [project] option so that you can see all the folders and files.




回答3:


R.java is the generated file by ADT or Android studio. It will be located under app\build\generated\source\r directory.

./app/build/generated/source/r/debug/android/support/v7/appcompat/R.java
./app/build/generated/source/r/debug/your/packagename/name/R.java



回答4:


I am using Android Studio 2.2.3 , the R.java file is shown in the picture below. Goto in the left upper side there is a selecting list ,

  1. select [package]
  2. Open "App Folder"
  3. com.example.saeedanwar.myapplication;
  4. r




回答5:


Change a project view from Android to Project or Project Files. Find one of these two files.

Then you can revert back to Android view.




回答6:


Project/app/build/generated/source/r/debug/com.android.'projectname'/R.java




回答7:


It is inside app\build\generated\source\r folder



来源:https://stackoverflow.com/questions/28522144/where-is-the-r-java-file-in-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!