Method Classpath() not found. Enabling SafeArgs in app

48 views Asked by At

Currently going through Android Developers "Build Your First Android App in Kotlin" tutorial. Attempting to enable safe args. Running into the following error: enter image description here How should I fix this?

So far I have added the id androidx.navigation.safeargs.kotlin to the app level build.gradle file and in the project level build.gradle file I've added the following code to the dependencies block:

def nav_version = "2.5.3"
classpath ("androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version")
0

There are 0 answers