android: Update build toolchain to NDK 28 and Java 21

Update Android build configuration to use the latest NDK version 28.0.13004108
and Java JDK 21. This includes:

- Updating ndkVersion from 26.3.11579264 to 28.0.13004108
- Upgrading Java compatibility from Java 17 to Java 21
- Setting Kotlin JVM target from 17 to 21

These changes modernize the Android build toolchain and ensure compatibility
with the latest development tools.
This commit is contained in:
Zephyron 2025-02-09 18:24:45 +10:00
parent b3c60b4cbe
commit b07751ed43
No known key found for this signature in database

View file

@ -28,7 +28,7 @@ android {
namespace = "org.citron.citron_emu"
compileSdk = 35
ndkVersion = "26.3.11579264"
ndkVersion = "28.0.13004108" // "26.3.11579264"
buildFeatures {
viewBinding = true
@ -36,12 +36,12 @@ android {
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
kotlinOptions {
jvmTarget = "17"
jvmTarget = "21"
}
packaging {