I ran into the same issue and this worked for me so let me know how it goes.
- Right click on your project and open up
Module Settings - Click facets.
- Add
Android-Gradleand apply. - Close and reopen project and rebuild.
I ran into the same issue and this worked for me so let me know how it goes.
Module SettingsAndroid-Gradle and apply.