This document provides a step-by-step guide to set up and run the KMP Kotlin Multi-Platform desktop application.
Before you begin, ensure you have the following installed:
- Kotlin
- IntelliJ IDEA or Android Studio
- Android Debug Bridge (ADB)
- Open your terminal or command prompt.
- Type the following command to check if ADB is installed and properly configured:
adb --version
- You should see the version information. If you encounter an error, ensure that ADB is included in your system's PATH variable.
- Connect your Android device to your computer via USB.
- Ensure that USB debugging is enabled on your device. You can enable it by navigating to Settings > Developer options > USB debugging.
- Verify that your device is properly connected and visible:
adb devices
- You should see your device listed in the output. If it’s not listed, check your USB connection and permissions.
- To run the application, use the following command in your terminal:
./gradlew :composeApp:run
- Alternatively, you can set up this command in your IDE's configurations for easier access.
- Launch the application.
- Open the Package Manager window within the application.
- From the list of available packages, select the desired package you want to work with.