Guys, need your help. Trying to configure common g...
# gradle
v
Guys, need your help. Trying to configure common gradle files for different modules in Android app. For example,
version code
and
version name
and then use it via
apply
. But when I try to enter
android {}
function, it says “cannot resolve reference”. Is there any way out?
d
Copy code
plugins {
    android() version "..."
    kotlin("android") version "..."
}

android {

}
v
it doesn’t compile
d
the syntax for line 2 isn't right then, find the right syntax for android plugin