Imany
01/22/2021, 8:41 AMsettings.gradle.kts
like this:
pluginManagement {
repositories {
gradlePluginPortal()
google()
}
plugins {
id(GradlePluginId.GRADLE_PLUGIN) version GradlePluginsVersion.GRADLE_PLUGIN
}
}
that GradlePluginId
and GradlePluginVersion
are Kotlin objects, but the problem is they don't resolve with just this message:
_*Unresolved reference: GradlePluginId
Unresolved reference: GradlePluginVersion*_
however I can go to declaration and back to usage through the IDE.
my project settings:
implementation("com.android.tools.build:gradle:4.1.1")
distributionUrl=<https://services.gradle.org/distributions/gradle-6.5-bin.zip|https://services.gradle.org/distributions/gradle-6.5-bin.zip>
thank you.Vampire
01/22/2021, 10:20 AMVampire
01/22/2021, 10:22 AMImany
01/22/2021, 11:09 AMImany
01/22/2021, 11:10 AMVampire
01/22/2021, 11:13 AMbuildSrc
is executed after settings script evaluation in recent Gradle versions, so this no longer works.Imany
01/22/2021, 12:30 PMVampire
01/22/2021, 12:32 PMVampire
01/22/2021, 12:33 PMVampire
01/22/2021, 12:33 PMVampire
01/22/2021, 12:34 PMImany
01/22/2021, 1:07 PMVampire
01/22/2021, 1:08 PMHarun
01/23/2021, 5:30 AM