I am trying to implement a navigation drawer in an existing android app using Kotlin. I have created 2 activities. Now I want to implement a Navigation Drawer in each of these activities. The implementation is quite easy. I am facing issues when I want to add a navigation drawer activity to my application. The code is never compiled. I tried many things. But nothing is working.
The version of my android studio.
My navigation drawer activity.
Please suggest what I am missing.
CodePudding user response:
Remove the dependencies androidx.navigation
without ktx
at the end and update the Kotlin version in the project to at least 1.6.0
.