问题
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 ,
- select [package]
- Open "App Folder"
- com.example.saeedanwar.myapplication;
- 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