jean
02/21/2022, 9:11 PM[plugins]
kotlin-android = {id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
but I get the following error Error resolving plugin [id: 'org.jetbrains.kotlin.android', version: '1.5.30']
when checking mvnrepository.com I can see it exists implementation("org.jetbrains.kotlin.android:org.jetbrains.kotlin.android.gradle.plugin:1.5.30")
but I guess I’m not using the correct string in the id
property?Javier
02/21/2022, 11:07 PMJavier
02/21/2022, 11:07 PMorg.jetbrains.kotlin.android
Vampire
02/21/2022, 11:07 PMJavier
02/21/2022, 11:07 PMclasspath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.20-M1"
Vampire
02/21/2022, 11:07 PMJavier
02/21/2022, 11:07 PMVampire
02/21/2022, 11:07 PMVampire
02/21/2022, 11:08 PMVampire
02/21/2022, 11:12 PMjean
02/22/2022, 7:16 AM[versions]
kotlin = "1.5.30"
...
[plugins]
kotlin-android = {id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
then I try to use it like so
plugins {
alias(libs.plugins.kotlin.android)
...
}
and this is the errorFunkyMuse
02/22/2022, 7:27 AMjean
02/22/2022, 7:53 AMJavi Chaqués
02/22/2022, 7:58 AMpluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
jean
02/22/2022, 7:59 AMpluginManagement
block 🤔 let me see If I can add itjean
02/22/2022, 8:05 AMjean
02/22/2022, 8:05 AMJavi Chaqués
02/22/2022, 8:12 AMJavi Chaqués
02/22/2022, 8:13 AM[plugins]
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "plugin-kotlin" }
Javi Chaqués
02/22/2022, 8:13 AMpluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven(url = "<https://jitpack.io>")
}
}
Javi Chaqués
02/22/2022, 8:14 AMJavi Chaqués
02/22/2022, 8:15 AMplugins {
...
alias(libs.plugins.kotlin.android)
}
Vampire
02/22/2022, 8:37 AMVampire
02/22/2022, 8:37 AMjean
02/22/2022, 9:50 AMclasspath(…)
too that was apparently conflicting with it. After removing it the issue was gone 🤷 Thanks all of you for the help!Vampire
02/22/2022, 9:59 AM