Jaya Krishnan Nair K
01/18/2025, 10:07 AMJaya Krishnan Nair K
01/18/2025, 10:09 AMplugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.google.ksp)
}
...
kotlin {
...
sourceSets {
commonMain.dependencies {
...
}
androidMain.dependencies {
// ksp reference is associated with gradle plugin extension }
}
}
android {
...
dependencies {
ksp(libs.room.compiler) // here room ksp compiler works
}
}
Jaya Krishnan Nair K
01/18/2025, 10:10 AM"ksp"(libs.room.compiler) or `add("ksp", libs.room.compiler)` doesnt either doesnt work either in androidMain.deps block.
Chrimaeon
01/18/2025, 11:04 AMJaya Krishnan Nair K
01/18/2025, 11:06 AMadd
method in deps block. Didnt work.Chrimaeon
01/18/2025, 11:09 AMksp
in multiplatform - each target has its own ksp configuration so for, depending on your target configuration, for android it is most probably kspAndroidMain
Jaya Krishnan Nair K
01/18/2025, 11:14 AMadd
method inside androidMain.dependencies block where ksp
was inaccessible. now that i put a new dep block outside kotlin block it works. thanks.Jaya Krishnan Nair K
01/18/2025, 11:17 AMConfiguration with name 'kspAndroidMain' not found.
. dropping this info so that it helps anyone looking for it.Julian Pellico
02/12/2025, 3:29 AMkspAndroidMain
is not a valid name, only kspAndroid
works. So there is no granularity of source sets (as documentation states), but only platforms?