I created a new layout file in the appropriate resource folder. After syncing, when I try to reference the layout file, i.e. R.layout.activity_test, R is an "unresolved symbol". When I try to build in AS it fails.
The interesting thing is that if I manually import the R file and use it in code, when I try to build on command line, it works. The other thing is when I try to access the layout file using R in a Java file, that also works. So I know R.java is being generated.
I tried creating a totally new project, and R is accessible in Kotlin files.
What is the problem here?
Things I have tried:
Cleaned then built
Invalidated Caches / Restart
Blow away .gradle folders and recreate indexes
Other info:
AS v3.0.1
Tried both Kotlin v1.1.2-4 and v1.1.60
Gradle v4.2.1
Gradle Plugin v3.0.0