- check your system with KDoctor
- install JDK 8 on your machine
- install the Kotlin Multiplatform Mobile plugin
Open the project in Android Studio and let it sync the project. In the configuration dropdown should be the following:
- demo.android
- demo.desktop
- demo.ios
- demo.browser
You can select a configuration and run it, or follow the steps below.
To run the application on android device/emulator:
- open project in Android Studio and run imported android run configuration
To build the application bundle:
- run
./gradlew :composeApp:assembleDebug
- find
.apk
file incomposeApp/build/outputs/apk/debug/composeApp-debug.apk
To run the application on iPhone device/simulator:
- Open
iosApp/iosApp.xcworkspace
in Xcode and run standard configuration - Or use Kotlin Multiplatform Mobile plugin for Android Studio