<How to fix android Error : Inconsistent JVM-targe...
# stackoverflow
r
How to fix android Error : Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (11) and 'compileDebugKotlin' (17) I am changing the targetSdkVersion and compileSdkVersion from 33 to 34. For that I changed my ddistributionUrl=https://services.gradle.org/distributions/gradle-8.2-all.zip. The project got synced successfully but when I am trying to build it it is giving me error : Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (11) and 'compileDebugKotlin' (17) I looked for various solutions where we should do sourceCompatibility JavaVersion.VERSION_17...