diff --git a/app/build.gradle b/app/build.gradle index facdad7c4..1d15a01b8 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -15,14 +15,21 @@ * along with this program. If not, see . */ -apply plugin: 'com.android.application' +plugins { + id 'com.android.application' + id 'org.jetbrains.kotlin.android' +} android { compileSdk rootProject.ext.compileSdk compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility JavaVersion.VERSION_11 + targetCompatibility JavaVersion.VERSION_11 + } + + kotlinOptions { + jvmTarget = "11" } defaultConfig { diff --git a/build.gradle b/build.gradle index 5f2d93278..0e116ea1f 100644 --- a/build.gradle +++ b/build.gradle @@ -24,6 +24,7 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:8.5.1' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.10" } }