From 488306e1ebd9e39ffbc299364f2d3a32fe9857df Mon Sep 17 00:00:00 2001 From: Nick Feldmann Date: Tue, 31 Dec 2024 15:35:41 +0100 Subject: [PATCH] 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 --- android/android.make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)