I have a problem. When I start a new project in Android Studio and select a navigation drawer activity it happens. I don\'t have access to my activiy_main_drawer.xml>
Sometimes while converting the code from java to kotlin some library may get imported like import android.R Just remove this library.
Check this tools:context=".MainActivity" in xml while copying another XML the class name will also get copy.
Else try File -> Sync project with gradle or rebuild the project.