diff --git a/app/build.gradle b/app/build.gradle index 94fec36ee..ccc10a4cc 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -88,9 +88,11 @@ android { } namespace 'org.xbmc.kore' - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 +} + +java { + toolchain { + languageVersion = JavaLanguageVersion.of(17) } }