Is there some kind of ordering issues to know about between the Android Gradle Plugin and the Kotlin plugin itself?
My
build.gradle.kts
looks like this:
Copy code
plugins {
id("com.android.application") version "8.1.4"
kotlin("multiplatform") version "1.9.20"
id("org.jetbrains.compose") version "1.5.10"
}
kotlin {
androidTarget {
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
}
and any Gradle invocation crashes with
Copy code
The Android Gradle plugin was applied without creating a corresponding 'android()' Kotlin Target:
plugins {
id("com.android.application")
kotlin("multiplatform")
}
kotlin {
androidTarget() // <-- please register this Android target
}
``````
and, well, you tell me, but I'm pretty sure I did what it wants.