diff --git a/settings.gradle.kts b/settings.gradle.kts index c90c1a24a..465a72616 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -63,3 +63,11 @@ include(":lint") include(":sync:work") include(":sync:sync-test") include(":ui-test-hilt-manifest") + +check(JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17)) { + """ + Now in Android requires JDK 17+ but it is currently using JDK ${JavaVersion.current()}. + Java Home: [${System.getProperty("java.home")}] + https://developer.android.com/build/jdks#jdk-config-in-studio + """.trimIndent() +}