1

In the new project Gradle plugin has a lot of changes and I can't add classpath for safe args. How I can solve this problem?

Anubis
  • 21
  • 2

1 Answers1

0

You can manually add this above plugins in your top level build.gradle

buildscript {
    dependencies {
        classpath("androidx.navigation:navigation-safe-args-gradle-plugin:2.4.2")
    }
}

And in App level build.gradle

plugins {
    id 'androidx.navigation.safeargs'
}
Faizan Haidar Khan
  • 1,099
  • 1
  • 15
  • 20