project수준의 build.gradle에다가 buildscript 블록 생성
buildscript {
ext {
some_version = '1.1.0'
}
repositories {
google()
}
dependencies {
def nav_version = "2.4.1"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
}
}
plugins {
// ...
}
task clean(type: Delete) {
// ...
}
안에다가 classpath랑 ext 써주면됨