-
Notifications
You must be signed in to change notification settings - Fork 90
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
Comments
The desktop app seems to run correctly to me. |
Yes, using that. I get the error in code editor before I hit run.
…On Sun, Jun 23, 2024, 11:35 AM dbaroncelli ***@***.***> wrote:
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?
—
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZNM7LG4I5VS3463FW4HOXTZI32LZAVCNFSM6AAAAABJYJADR2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBVGE2DMMZQGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Which error exactly? Can you send me a screenshot? |
That's strange. I don't get that. Try to clean the project: "Build -> Clean Project". |
using Android Studio Cleaned Project. Same error THe getAndroidInstance does not have an issue. it compiles and runs as expected |
For Kotlin Multiplatform, you should use either Intellij IDEA or Fleet. |
Installed the IntelliJ edition
Running android works fine. Desktop Has the same issue.
e: file:///D:/OWJ/androidStudio-mulitplatform/D-KMP-sample-main/composeApp/src/desktopMain/kotlin/main.kt:13:39 Unresolved reference 'getDesktopInstance'.
IntelliJ IDEA 2024.1.4 (Community Edition)
Build #IC-241.18034.62, built on June 20, 2024
Runtime version: 17.0.11+1-b1207.24 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0
GC: G1 Young Generation, G1 Old Generation
Memory: 4056M
Cores: 4
Registry:
ide.experimental.ui=true
Non-Bundled Plugins:
org.jetbrains.android (241.17011.79)
Kotlin: 241.18034.62-IJ
From: dbaroncelli ***@***.***>
Sent: Tuesday, June 25, 2024 8:23 AM
To: dbaroncelli/D-KMP-sample ***@***.***>
Cc: mylockerbiz ***@***.***>; Author ***@***.***>
Subject: Re: [dbaroncelli/D-KMP-sample] D-KMP-sample-main:composeApp:DesktopMain DKMPViewModel.Factory.getDesktopInstance() unresolved (Issue #32)
Closed #32 <#32> as completed.
—
Reply to this email directly, view it on GitHub <#32 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AZNM7LGAMRL2W5NRWJ5N2C3ZJFOJDAVCNFSM6AAAAABJYJADR2VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTGI4DANBTGMYTGOI> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AZNM7LDOIXHCXFYWPHOVK4TZJFOJDA5CNFSM6AAAAABJYJADR2WGG33NNVSW45C7OR4XAZNWJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XKUY3PNVWWK3TUL5UWJTYAAAAAGF4TKPZQ.gif> Message ID: ***@***.*** ***@***.***> >
|
I am using a Mac. I haven't tested it on Windows. |
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.
The text was updated successfully, but these errors were encountered: