Compose Multiplatform template 2025
To setup the environment, please consult these instructions.
If you already runned this sample before, then you need to execute command at least once:
/gradlew podInstall
Choose a run configuration for an appropriate target in IDE and run it.
./gradlew desktopApp:run
./gradlew :desktop:packageDistributionForCurrentOS
# outputs are written to desktopApp/build/compose/binaries
Note: Web support is in Alpha. It may be changed at any time. You can use it in scenarios before production. We would appreciate your feedback in GitHub.
./gradlew :webApp:wasmJsRun
- Get a Google Maps API key
- Add to
local.properties
file located in the root directory (create if it doesn't exist):MAPS_API_KEY=YOUR_KEY
whereYOUR_KEY
is your key from previous step;sdk.dir=YOUR_SDK_PATH
whereYOUR_SDK_PATH
is a path to Android SDK in your system.
- Open project in IntelliJ IDEA or Android Studio and run
androidApp
configuration.