I am brand new to IntelliJ so I apologize if this doesn’t work for you. I was experiencing the same problem and the solution was to add an Android
Facet
to your project.
(I am on a Mac, so directions here may be slightly off, and there are probably better ways to find this window, if so let me know!)
- Right click your project and go down to
Open Module Settings
(seems F4 also works) - Select
Facets
in the far left column - Click the + button
- Add an
Android
Facet
to your project, and VOILA! - You may need to import your
R
s now, which could be a huge pain… so hopefully someone can chime in with an easy way to auto-import
Hope this helps someone!