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.
Remove the dependencies androidx.navigation
without ktx
at the end and update the Kotlin version in the project to at least 1.6.0
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.