From fba167eb3d63eeaf2ecf700c0f919f38e2674689 Mon Sep 17 00:00:00 2001 From: gedoor Date: Tue, 3 Aug 2021 10:05:23 +0800 Subject: [PATCH] up to java 11 --- app/build.gradle | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 9ae2752a0..902af3cd7 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -97,13 +97,13 @@ android { compileOptions { // Flag to enable support for the new language APIs coreLibraryDesugaringEnabled true - // Sets Java compatibility to Java 8 - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + // Sets Java compatibility to Java 11 + sourceCompatibility JavaVersion.VERSION_11 + targetCompatibility JavaVersion.VERSION_11 } kotlinOptions { - jvmTarget = "1.8" + jvmTarget = "11" } buildToolsVersion '30.0.3' tasks.withType(JavaCompile) {