moko-resources icon indicating copy to clipboard operation
moko-resources copied to clipboard

Error when kotlin.version=1.9.0 and compose.version=1.4.3

Open lijianqiang12 opened this issue 1 year ago • 4 comments

e: file:....../MR.kt:12:22 Expected object 'MR' has no actual declaration in module <shared_debug> for JVM

lijianqiang12 avatar Aug 24 '23 10:08 lijianqiang12

Same for me

daniaviladomingo avatar Aug 24 '23 10:08 daniaviladomingo

Same problem. Looks like this. This solution helps for me/

kotlin {
    jvm()
    sourceSets {
       val commonMain by getting
        // jvmMain needs to be set to explicity dependsOn(commonMain) even though it should be implied
        val jvmMain by getting {
            dependsOn(commonMain)
        }
    }
}

akelix avatar Aug 24 '23 15:08 akelix

Duplicated of https://github.com/icerockdev/moko-resources/issues/531

bcmedeiros avatar Aug 29 '23 01:08 bcmedeiros

I also have this issue, but this solution is working for me for android: https://github.com/icerockdev/moko-resources/issues/531#issuecomment-1672799869

but i am also facing other isssues in iOS and web as well as mentioned here: https://github.com/JetBrains/compose-multiplatform/issues/3603#issuecomment-1704076320

sunildhiman90 avatar Sep 03 '23 10:09 sunildhiman90

will be fixed in 0.24.0, please check in 0.24.0-alpha-6

ExNDY avatar Apr 17 '24 05:04 ExNDY

should be fixed in 0.24.0-beta-1

Alex009 avatar Apr 19 '24 15:04 Alex009