问题展示:
解决方式:
在app的gradle中添加
def nav_version = "2.2.2" // Kotlin implementation "androidx.navigation:navigation-fragment-ktx:$nav_version" implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
在app的gradle中添加
def nav_version = "2.2.2" // Kotlin implementation "androidx.navigation:navigation-fragment-ktx:$nav_version" implementation "androidx.navigation:navigation-ui-ktx:$nav_version"