I have the same issue, in my case name of package is the same in MainActivity.kt and build.gradle.
Should I try to delete MainActivity.kt and add it again? How to add it after delete?