From cbf2ea7b48710577a432904de3b08be4acba664c Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 23 Feb 2020 19:19:25 +0530 Subject: Target JVM 1.8 from Kotlin as well Signed-off-by: Harsh Shandilya --- app/build.gradle | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app') diff --git a/app/build.gradle b/app/build.gradle index 8817c847..08fcad93 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -12,6 +12,11 @@ android { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } + tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { + kotlinOptions { + jvmTarget = '1.8' + } + } compileSdkVersion 29 dataBinding.enabled true defaultConfig { -- cgit v1.2.3