What's the easiest way to force Idea to generate the R.Java file?

前端 未结 9 1827
抹茶落季
抹茶落季 2021-01-11 20:43

I am trying to run Android sample applications using intellij idea and R.Java file is missing form notepad samples source directory.

9条回答
  •  我在风中等你
    2021-01-11 21:13

    In AndroidStudio use: Build -> Rebuild Project.

    And remember, the generated R file is not in the project "gen" directory. It is in the "out" directory (drill down to your project).

提交回复
热议问题