Reputation: 321
I get the error above when i try run my app on Android device. But only, if open my Flutter project. When i open only Android module, i don't get this error, and app runs fine. app/build.gradle seems like
compileSdkVersion 34
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
coreLibraryDesugaringEnabled true
}
kotlinOptions {
jvmTarget = '17'
}
I use
Execution failed for task ':charset_converter:compileDebugKotlin'. Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (17) and 'compileDebugKotlin' (21). Consider using JVM Toolchain: https://kotl.in/gradle/jvm/toolchain Learn more about JVM-target validation: https://kotl.in/gradle/jvm/target-validation
error mesage.
No idea what to do.
Upvotes: 1
Views: 166
Reputation: 321
added
kotlin.jvm.target.validation.mode=IGNORE
to gradle.propertys solved
Upvotes: 0