. Advertisement .
..3..
. Advertisement .
..4..
When I try to run my code in Java, I get the following error message ERROR : ‘compileJava’ task (current target is 11) and ‘compileKotlin’ task (current target is 1.8) jvm target compatibility should be set to the same Java version
If anyone has experience with this, please suggest me. Thank you.
To fix it, you just need to set java version. Here are 2 ways you can use:
Or
Read more:
→ Solutions For “ERROR : ‘compileJava’ task (current target is 11) and ‘compileKotlin’ task (current target is 1.8) jvm target compatibility should be set to the same Java version in Java.”