Georg Prohaska
10/24/2025, 10:41 AMagp = "8.13.0"
kotlin = "2.2.20"
[plugins]
androidApplication = { id = "com.android.application", version.ref = "agp" }
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.androidApplication)
...
}
kotlin {
sourceSets.all {
languageSettings {
optIn("kotlin.uuid.ExperimentalUuidApi")
}
}
androidTarget {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_21)
}
}
...
}
And in the settings it looks like this:Rey (Kingg22)
10/24/2025, 11:48 AM}}
Source sets configuration blocks are only for extending the global (or common) configuration, for example, adding more opt-ins on iOS.
Maybe this help u, if it isn't maybe is the version of the IDE / pluginsGeorg Prohaska
10/24/2025, 12:51 PMkotlin {
compilerOptions {
optIn.add("kotlin.uuid.ExperimentalUuidApi")
languageVersion.set(KotlinVersion.KOTLIN_2_2)
apiVersion.set(KotlinVersion.KOTLIN_2_2)
}
seems a bit odd to me that this is necessary though...Chrimaeon
10/24/2025, 2:27 PMGeorg Prohaska
10/25/2025, 8:13 AM