Android Studio R.java

前端 未结 6 2062
太阳男子
太阳男子 2021-02-05 12:35

I\'m seeing a crash on an older device that works on multiple newer devices:

android.content.res.Resources$NotFoundException: Resource ID #0x7f030035
         


        
6条回答
  •  孤独总比滥情好
    2021-02-05 13:13

    [SOLVED] LOCATION OF R.JAVA file in Android Studio 1.3.1 is as follows:

    In Android Studio, go to the Project Window (usually on the left-hand side pane:

    1. Right-click on the node, app
    2. Click on "Show In Explorer". This will open the actual directory/location of your project.
    3. The path of the R.java file in this directory is as follows: app\build\generated\source\r\debug\com\sg\calculator
      (Since, I used the package name com.sg.calculator for my project, hence, I had to go inside the folder com\sg\calculator. This will be obviously different for your project).

提交回复
热议问题