https://kotlinlang.org logo
n

Nikky

11/10/2020, 5:14 PM
do i HAVE to use
Copy code
dependencies {
    classpath("com.android.tools.build:gradle:_")
    classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:_")
  }
instead of
Copy code
plugins {
    id("com.android.application")
    id("com.android.library")
}
with pluginManagement ? is that already a known issue ?
l

louiscad

11/10/2020, 5:24 PM
The plugin ids you mentioned are not published until version 4.1 or 4.2, and you need to setup the google repository in the pluginManagement DSL. Before that, they rely on the buildscript dependency, and we have an undocumented facility with the key
plugin.android
as you can see in the
sample-android
.
4 Views