Module with an Android application.
It uses the common modules as dependencies.
export enabledModules="application-mobile-jvm-android"
./gradlew :application-mobile-jvm-android:build
or in a simplified way (can run more tasks):
./gradlew build
./gradlew :application-mobile-jvm-android:check
or in a simplified way (can run more tasks):
./gradlew check
Update the Android SDK or the Android Studio to its latest version, so the latest Android SDK will be available.
Make sure to enable the Android module, so IntelliJ will be able to automatically recognize the Android app and pre-configure it.
Create a new Run/Debug Configurations
of type Android App
on IntelliJ choosing the Android module.
Run the application through the simulator or mobile phone and wait until the application is installed and launched.
The output should be similar to this one:
["com.company.team.project.common.multiple_sources.jvm","com.company.team.project.common.single_source.common","com.company.team.project.common.single_source.jvm.common","com.company.team.project.application.mobile.jvm.android"]