Rey (Kingg22)
12/17/2025, 10:49 PMRey (Kingg22)
12/17/2025, 10:49 PMkotlin {
compilerOptions {
freeCompilerArgs.addAll("-Xexpect-actual-classes")
}
androidLibrary {}
jvm {}
js {}
wasmJs {}
@OptIn(ExperimentalKotlinGradlePluginApi::class)
applyDefaultHierarchyTemplate {
common {
group("androidAndJvm") {
withAndroidTarget()
withJvm()
}
group("nonJvm") {
withJs()
withWasmJs()
// add all nonJvm targets
}
}
}
}
I have an expect abstract class in commonMain
expect abstract class Resource() {}
In androidAndJvm and nonJvm main source set I have the actual implementation, but I have an error:
No actual implementation in androidMain only when use KMP library.
Is my KMP DSL configuration incorrect, or is it simply not ready yet?