Hii, I'm migrating a project to the Android KMP li...
# android
r
Hii, I'm migrating a project to the Android KMP library and I'm having trouble setting up a group of targets with Kotlin Hierarchy template DSL. Code in 🧵
Copy code
kotlin {
    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
Copy code
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?