diff --git a/android/app/build.gradle b/android/app/build.gradle index daf084773..7f382444c 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -2,6 +2,7 @@ plugins { id "com.android.application" id "kotlin-android" id "dev.flutter.flutter-gradle-plugin" + id("org.gradle.toolchains.foojay-resolver-convention") version("0.8.0") } def localProperties = new Properties() @@ -50,6 +51,10 @@ android { jvmTarget = '21' } + kotlin { + jvmToolchain(17) + } + sourceSets { main.java.srcDirs += 'src/main/kotlin' }