From e74303c9bed248d6dd3f0440223c1edd297eb4e9 Mon Sep 17 00:00:00 2001
From: Matthias Nott <mnott@mnsoft.org>
Date: Thu, 11 Jun 2026 09:34:27 +0200
Subject: [PATCH] build(android): pin Gradle JVM to JDK 21

---
 android/gradle.properties |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/android/gradle.properties b/android/gradle.properties
index fbee1d8..f1fbc43 100644
--- a/android/gradle.properties
+++ b/android/gradle.properties
@@ -1,2 +1,6 @@
 org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
 android.useAndroidX=true
+# System default Java is 25 — the Kotlin compiler bundled by AGP can't parse
+# that version string yet ("IllegalArgumentException: 25.0.2"). Pin Gradle to
+# Java 21 (LTS, fully supported).
+org.gradle.java.home=/opt/homebrew/Cellar/openjdk@21/21.0.11/libexec/openjdk.jdk/Contents/Home

--
Gitblit v1.3.1