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

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

    Make sure you have the right settings: project structure -> Facets -> Android -> yourproject -> compiler

    Check compile resources by IDE and Regenerate R.java when resources are changed.

    This stole most of my morning, hopefully I'll save someone else some time:)

提交回复
热议问题