简体   繁体   中英

Android Navigation Drawer framework issue | Kotlin | 2022

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. 安卓工作室版本

List of dependencies依赖项

My navigation drawer activity. 我的导航抽屉活动

The monster error. 这是怪物错误

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM