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

D-KMP-sample-main:composeApp:DesktopMain DKMPViewModel.Factory.getDesktopInstance() unresolved #32

Closed
mylockerbiz opened this issue Jun 23, 2024 · 9 comments

Comments

@mylockerbiz
Copy link

The factory method for desktopMain has DKMPViewModel.Factory.getDesktopInstance() unresolved.
The android factory method works fine.
I am using unaltered files for the desktopMain in composeApp and shared.

@dbaroncelli
Copy link
Owner

The desktop app seems to run correctly to me.
Which error do you get when you run it?
Are you selecting the task "compose desktop -> run" in the Gradle window?

@mylockerbiz
Copy link
Author

mylockerbiz commented Jun 23, 2024 via email

@dbaroncelli
Copy link
Owner

Which error exactly? Can you send me a screenshot?

@mylockerbiz
Copy link
Author

d-kmp-sample-main getDesktopInstance error

image

@dbaroncelli
Copy link
Owner

That's strange. I don't get that.
I am using "Intellij IDEA Community Edition" 2014.1.4

Try to clean the project: "Build -> Clean Project".

@mylockerbiz
Copy link
Author

using Android Studio
Android Studio Jellyfish | 2023.3.1 Patch 1
Build #AI-233.14808.21.2331.11842104, built on May 14, 2024
Runtime version: 17.0.10+0--11572160 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 4
Registry:
ide.instant.shutdown=false
ide.balloon.shadow.size=0
ide.experimental.ui=true
Non-Bundled Plugins:
com.jetbrains.kmm (0.8.2(233)-8)
org.jetbrains.compose.desktop.ide (1.6.2)

Cleaned Project. Same error

THe getAndroidInstance does not have an issue. it compiles and runs as expected

@dbaroncelli
Copy link
Owner

For Kotlin Multiplatform, you should use either Intellij IDEA or Fleet.

@mylockerbiz
Copy link
Author

mylockerbiz commented Jun 25, 2024 via email

@dbaroncelli
Copy link
Owner

I am using a Mac. I haven't tested it on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants