Abhishek Sharma
07/25/2023, 5:00 PMUnresolved reference: ExperimentalKotlinGradlePluginApi
and in the generated module's build.gradle
I had to comment out the below line. Anyone know what's the workaround here?
`
//@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
kotlin {
// targetHierarchy.default()
android {
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
`Jeff Lockhart
07/25/2023, 5:47 PMtargetHierarchy.default()
API was added in Kotlin 1.8.20.SanjayKarki
07/26/2023, 3:41 AMtargetHierarchy.default{
common {
group("mobile"){
withIos()
withAndroid()
}
}
}
and also for val iosMain using getting instead of creating if you are using creatingAbhishek Sharma
07/26/2023, 5:11 PM