What went wrong:
Execution failed for task ':otp_autofill:compileDebugKotlin'.
'compileDebugJavaWithJavac' task (current target is 1.8) and 'compileDebugKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version.
Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain
Got this error when running the application with
compileSdkVersion 34 minSdkVersion 21
compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }
kotlinOptions { jvmTarget = '1.8' }
ext.kotlin_version = '1.8.22' classpath 'com.android.tools.build:gradle:8.0.0'