KorGE Targets Android
The Android target uses the Kotlin JVM. It consumes and generates intermediate
to end generating portable Android
APK, or Android
with no external dependencies, nor native per-platform native code, also supports
proguard, so the resulting application is really small.
Table of contents:
- Installing and using the Android SDK
Using gradle tasks on the terminal.
To installs an APK on all the connected devices (debug/release variants)
Even if cannot install it, it generates the APK file available in
./gradlew installAndroidDebug ./gradlew installAndroidRelease
To run the application in an available emulator/device (debug/release variants)
./gradlew runAndroidDebug ./gradlew runAndroidEmulatorDebug ./gradlew runAndroidDeviceDebug ./gradlew runAndroidRelease ./gradlew runAndroidEmulatorRelease ./gradlew runAndroidDeviceRelease
Triggering these tasks, it generates a separate android project into
You can open it in
Android Studio for debugging and additional tasks. The KorGE plugin just
delegates gradle tasks to that gradle project.
To generate AAR package files to upload the store:
./gradlew bundleAndroid ./gradlew bundleDebug ./gradlew bundleRelease
Installing and using the Android SDK
This target requires a separate installation of the Android SDK.
When installed with Android Studio it is usually detected directly, but you can use
ANDROID_SDK environment variable, or the
sdk.dir on the