Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
lijianqiang12 opened this issue Aug 24, 2023 · 6 comments · Fixed by #575
Closed

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

lijianqiang12 opened this issue Aug 24, 2023 · 6 comments · Fixed by #575
Assignees
Labels
bug Something isn't working
Milestone

Comments

@lijianqiang12
Copy link

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

@daniaviladomingo
Copy link

Same for me

@akelix
Copy link

akelix commented Aug 24, 2023

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)
        }
    }
}

@bcmedeiros
Copy link

Duplicated of #531

@sunildhiman90
Copy link

I also have this issue, but this solution is working for me for android: #531 (comment)

but i am also facing other isssues in iOS and web as well as mentioned here: JetBrains/compose-multiplatform#3603 (comment)

@Alex009 Alex009 linked a pull request Sep 11, 2023 that will close this issue
71 tasks
@Alex009 Alex009 added this to the 0.24.0 milestone Sep 11, 2023
@ExNDY
Copy link
Contributor

ExNDY commented Apr 17, 2024

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

@Alex009
Copy link
Member

Alex009 commented Apr 19, 2024

should be fixed in 0.24.0-beta-1

@Alex009 Alex009 closed this as completed Apr 19, 2024
@Alex009 Alex009 added the bug Something isn't working label Apr 19, 2024
@Alex009 Alex009 mentioned this issue Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants