This message was deleted.
# dependency-management
s
This message was deleted.
m
Copy code
buildscript {
	repositories() {
	     google()
	     mavenCentral()
	}
	dependencies {
		classpath("com.android.tools.build:gradle:${buildPlatform.versions.androidGradlePluginVersion}")
		classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${buildPlatform.versions.kotlinVersion}")
	}
}
Copy code
Line 7:               classpath("com.android.tools.build:gradle:${buildPlatform.versions.androidGradlePluginVersion}")
                                                        ^ Unresolved reference: buildPlatform
a
I recommend you try with 7.4. I believe in 7.0.2 that indeed was not yet supported, but it should be with 7.4 (I believe it also works with 7.3.3).
v
Indeed it works from 7.2 on. But I'd recommend not using the legacy approach to add plugins to the buildscript class path anyway, but using the
plugins
block instead.
There you can then also use a
plugins
entry from the version catalog if your Gradle version is recent enough