Use Java 1.8 when generating build files

Bug: 320294595
Test: m
Change-Id: I5d4405001e02f2baa56650203be23caceb1094c0
This commit is contained in:
Sorin Basca 2024-01-26 16:47:40 +00:00
parent 091fbb1dad
commit 78885cae81
2 changed files with 2 additions and 2 deletions

View file

@ -651,7 +651,7 @@ var bpDepsTemplate = template.Must(template.New("bp").Parse(`
{{- end}}
],
{{- end}}
java_version: "1.7",
java_version: "1.8",
}
`))

View file

@ -262,7 +262,7 @@ LOCAL_STATIC_ANDROID_LIBRARIES :={{if .IsAar}} \
{{.MkName}}-nodeps{{end}}{{range .MkAarDeps}} \
{{.}}{{end}}
LOCAL_JAR_EXCLUDE_FILES := none
LOCAL_JAVA_LANGUAGE_VERSION := 1.7
LOCAL_JAVA_LANGUAGE_VERSION := 1.8
LOCAL_USE_AAPT2 := true
include $(BUILD_STATIC_JAVA_LIBRARY)
`))