Hi All, I'm trying to create a KMM project using t...
# multiplatform
a
Hi All, I'm trying to create a KMM project using the wizard. ( I'm on arch linux). I seem to be able to create an android app that uses the emulator, but when I try to create a desktop app as well it doesn't seem to work. Anyone come across this?
j
"doesn't seem to work" is a bit vague. If you shared the error you're experiencing and what you've tried, it'd be easier for someone to help.
πŸ‘ 1
a
Fair comment!
Okay - steps basically create an app in the wizard selecting only desktop. ( Same problem occurs if other targets are specified, but this is to get the proverbial 'minimal complete example).. When the project is imported into Android studio, I try to run composeapp/src/desktopMain/kotlin/main.kt and get...
Copy code
Cannot locate tasks that match ':composeApp:compileJava' as task 'compileJava' not found in project ':composeApp'.
p
If you run kdoctor in your environment? - What kdoctor says?
You have the KMP or compose desktop plugin installed in Android Studio? - Not sure if kdoctor checks that?
a
Is kdoctor available on linux? The video I watched said kdoctor only avail on macos?
🚫 1
j
Does the app run with
./gradlew :composeApp:run
?
☝️ 1
πŸ‘ 1
j
Easy on the "send to channel" option please πŸ™‚ People also read the threads, don't worry.
a
@Jacob Ras A sorry - I'm a newb
πŸ‘‹ 1
πŸ‘ 1
@Jeff Lockhart Yes! That works!
j
kdoctor is macOS only. But all you should need to compile and run a Compose Desktop app is a JDK installed.
πŸ‘ 2
a
So I guess I could just create a run configureation which runs that gradle task and I'm all good.
πŸ‘Œ 1
@Jeff Lockhart Thanks!
πŸ‘ 1
p
Ah good to know. I didn't know kdoctor wasn't available on Linux or Windows
a
@Jacob Ras Thanks for your diplomatic patience with a newb πŸ™‚
🀝 1