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

后端 未结 6 807
傲寒
傲寒 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条回答
  •  难免孤独
    2021-01-12 06:35

    @joe_deniable gave me the idea to look closer in the build folder, and I found a folder that had been excluded by intellij, where my R was happily having an ice cream. This was here:

    build/source/aidl/debug

    I had to remove this folder from the exclusion list and add it to the sources, and could finally start coding in this new IDE.

    Thanks

提交回复
热议问题