Cannot resolve Symbol R, where is gen folder in Android Studio?

后端 未结 6 808
傲寒
傲寒 2021-01-12 05:58

I have created a dummy Android project from within Android studio, and I can make it run, but the Editor itself fails to find the R class. In fact I can\'t find the gen fold

6条回答
  •  萌比男神i
    2021-01-12 06:52

    The folder layout is different to eclipse. I don't think there's a "gen" folder. My "R" file is in the following location:

    (module name)/build/source/r/debug/(package name)/R.java

    I think this file is created when you create a new project using the wizard.

提交回复
热议问题