summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Feldmann <nift4@protonmail.com>2024-12-31 15:35:41 +0100
committerSolomon Peachy <pizza@shaftnet.org>2025-01-01 09:59:46 -0500
commit488306e1ebd9e39ffbc299364f2d3a32fe9857df (patch)
tree30ef09b95c4c8e13c37c8a3edf2631c4a7a05bdb
parentf1b53d129f6e37a50151ea23fe2a80ece2c94568 (diff)
downloadrockbox-488306e1eb.tar.gz
rockbox-488306e1eb.zip
android: target java 1.7 bytecode
Java 17 on the host does no longer support targeting Java 1.6. This causes the build to fail. Build Tools 19.x support Java 1.7 bytecode and converts it to dex files for Android 2.2 or later, unless one uses the try-with-resources syntax which requires KitKat. Change-Id: I523746427f9ba3b60bef73fe1379b272cf048a05
-rw-r--r--android/android.make2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/android.make b/android/android.make
index 9e50e6ce70..583d468472 100644
--- a/android/android.make
+++ b/android/android.make
@@ -85,7 +85,7 @@ RES := $(wildcard $(ANDROID_DIR)/res/*/*)
CLEANOBJS += bin gen libs data
-JAVAC_OPTS += -source 1.6 -target 1.6 -implicit:none -classpath $(ANDROID_PLATFORM)/android.jar:$(CLASSPATH)
+JAVAC_OPTS += -source 1.7 -target 1.7 -implicit:none -classpath $(ANDROID_PLATFORM)/android.jar:$(CLASSPATH)
.PHONY:
$(MANIFEST): $(MANIFEST_SRC) $(DIRS)