Navigation component issue

Studio\Kotlin projects\NavigationComponent\app\src\main\java\com\resocoder\navigationtut\MainActivity.kt: (54, 29): None of the following functions can be called with the arguments supplied:
public open fun navigateUp(p0: NavController, p1: DrawerLayout?): Boolean defined in androidx.navigation.ui.NavigationUI
public open fun navigateUp(p0: NavController, p1: AppBarConfiguration): Boolean defined in androidx.navigation.ui.NavigationUI

How to solve GitHub - ResoCoder/navigation-component-tutorial
It has update issue but do not know how to update and make ti stable as I have modified gradle to make it updated.