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
This commit is contained in:
Nick Feldmann 2024-12-31 15:35:41 +01:00 committed by Solomon Peachy
parent f1b53d129f
commit 488306e1eb

View file

@ -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)