Hi. :wave: I'm trying to write a basic "Hello Wor...
# getting-started
m
Hi. 👋 I'm trying to write a basic "Hello World" type app that can run on Android, iOS, Desktop, and Web. I am following this guide... https://www.jetbrains.com/help/kotlin-multiplatform-dev/quickstart.html Given that I'm developing on 🪟, I did the web KMP wizard which seemed to work well enough. Without much fuss, I have it running on Android and I next wanted to try Desktop but I ran into a problem. The tutorial suggests that there will be a composeApp [desktop] run configuration but I don't see that.
image.png
I only have a single run configuration called composeApp which works to launch the Android build.
Maybe a higher level view is better...
image.png
So you can see the composeApp configuration under an Android App folder. I guess I'm wondering if I should create a new Desktop App folder with a new composeApp run configuration under there. 🤔
When I try to add a new configuration, I get prompted with quite a few options and I'm not really sure which one equates to "run this as a Desktop App".
image.png
Maybe
Application
?
s
there is a #C3PQML5NU channel, maybe they can help you 🤞
m
I think I figured it out. I noticed that the web tutorial had the little Gradle 🐘 mascot in the run configuration for both the Web and Desktop builds. So I selected that one from the long list in the screenshot above and...
image.png
I will say that the build spit out some warnings/errors...
Copy code
asset be32551d579b867e740a.wasm 15.2 MiB [emitted] [immutable] [from: kotlin/composeApp.wasm] (auxiliary name: main)
asset 8bc1b48ee28fd6b51bb9.wasm 8.01 MiB [emitted] [immutable] [from: kotlin/skiko.wasm] (auxiliary name: main)
asset composeApp.js 4.06 MiB [emitted] (name: main)
runtime modules 29.5 KiB 13 modules
modules by path ../../node_modules/ 521 KiB
  modules by path ../../node_modules/webpack-dev-server/client/ 71.8 KiB 16 modules
  modules by path ../../node_modules/webpack/hot/*.js 5.17 KiB 4 modules
  modules by path ../../node_modules/html-entities/dist/esm/*.js 33.3 KiB 4 modules
  ../../node_modules/@js-joda/core/dist/js-joda.esm.js 392 KiB [built] [code generated]
  ../../node_modules/ansi-html-community/index.js 4.16 KiB [built] [code generated]
  ../../node_modules/events/events.js 14.5 KiB [built] [code generated]
modules by path ./kotlin/ 1.02 MiB (javascript) 23.2 MiB (asset)
  javascript modules 1.02 MiB
    ./kotlin/composeApp.mjs 386 bytes [built] [code generated]
    + 3 modules
  asset modules 84 bytes (javascript) 23.2 MiB (asset)
    ./kotlin/skiko.wasm 42 bytes (javascript) 8.01 MiB (asset) [built] [code generated]
    ./kotlin/composeApp.wasm 42 bytes (javascript) 15.2 MiB (asset) [built] [code generated]
but it ultimately ended with
webpack 5.94.0 compiled successfully in 10046 ms
and the app runs in a browser.