Use Java 21 (required — Java 17 will not work with the Android build).
./gradlew lwjgl3:run- Install the Android SDK (via Android Studio or command-line tools).
- Create a
local.propertiesfile in the project root:
sdk.dir=/path/to/Android/Sdk- Required SDK components:
- Platform:
android-34 - Build-Tools:
36.1.0
- Platform:
The android subproject is included in settings.gradle by default. If it was excluded (e.g. for CI), make sure settings.gradle contains:
include 'android'
Enable USB debugging on your phone, then:
./gradlew android:installDebugThis builds the APK and installs it directly via ADB.
Use adb from your SDK's platform-tools:
~/Android/Sdk/platform-tools/adb uninstall pl.lonski.dzibdzikonYou need to uninstall first if you previously installed a version signed with a different key (e.g. switching between debug builds from different machines).
./gradlew android:assembleDebugOutput: android/build/outputs/apk/debug/android-debug.apk
~/Android/Sdk/platform-tools/adb shell am start -n pl.lonski.dzibdzikon/pl.lonski.dzibdzikon.android.AndroidLauncher