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

前端 未结 9 1807
抹茶落季
抹茶落季 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:24

    If you are using IDEA 12 on Windows 7 (and probably Vista and 8), R.Java can be found at :

    C:\Users\[username]\.IdeaIC12\system\compiler\[project].nnnnnnnn\.generated\aapt\[project].nnnnnnnn\production\[your\name\space]\R.java 
    

提交回复
热议问题