Requirements
Before installing Space Birds, ensure you have the following prerequisites:Core Requirements
-
Java Development Kit (JDK) 8 or higher
- The project uses Java source and target compatibility version 8
- JDK 9+ is fully supported with release flag set to 8
-
Gradle (included via wrapper)
- The project includes Gradle wrapper scripts (
gradlew/gradlew.bat) - No separate Gradle installation required
- The project includes Gradle wrapper scripts (
Platform-Specific Requirements
- Desktop (Linux/macOS/Windows)
- Android
No additional requirements beyond the JDK. The LWJGL3 backend will run on:
- Linux (x64, ARM32, ARM64)
- macOS (x64, Apple Silicon M1/M2)
- Windows (x86, x64)
Clone the Repository
Gradle Setup
The project uses Gradle with a wrapper, so no manual Gradle installation is needed.Make Gradle Wrapper Executable
On Linux/macOS, make the wrapper script executable:Gradle Configuration
The project includes optimized Gradle settings ingradle.properties:
- Daemon: Disabled by default to conserve RAM
- JVM Args:
-Xms512M -Xmx1G(512MB initial, 1GB max heap) - Encoding: UTF-8 for files and console
- libGDX Version: 1.14.0
Building the Project
Build All Platforms
To build sources and archives for all platforms:The
build task compiles all subprojects (core, lwjgl3, android) and creates archives.Build Desktop JAR
Build Android APK
Set up Android SDK path
Create Or set the environment variable:
local.properties in the project root:IDE Setup
IntelliJ IDEA
The project is configured to “Build and run using IntelliJ IDEA” (check Settings).
Eclipse
Clean IDE Data
To remove generated IDE files:Useful Gradle Tasks
Here are commonly used Gradle tasks for Space Birds:| Task | Description |
|---|---|
./gradlew build | Builds sources and archives for all platforms |
./gradlew clean | Removes build folders with compiled classes |
./gradlew lwjgl3:run | Runs the desktop version |
./gradlew lwjgl3:jar | Creates runnable JAR at lwjgl3/build/libs |
./gradlew android:assembleDebug | Builds Android debug APK |
./gradlew android:lint | Performs Android project validation |
./gradlew test | Runs unit tests |
Gradle Flags
--daemon- Uses Gradle daemon for faster builds--offline- Uses cached dependencies (no network)--refresh-dependencies- Forces dependency validation--continue- Continues execution after errors
Troubleshooting
Gradle Permission Denied
If you get permission errors on Linux/macOS:Android SDK Not Found
EnsureANDROID_SDK_ROOT is set or local.properties exists with sdk.dir.
Out of Memory Errors
Increase Gradle heap size ingradle.properties: