First of all, i am new in React Native.
When i build my empty(completely new) project it gives an error;
Task :react-native-gradle-plugin:compileKotlin
'compileJava' task (current target is 1.8) and 'compileKotlin' task (current target is 11) jvm target compatibility should be set to the same Java version.
I found a solution the above problem but i couldn't find the location that they mention.
Where are these code locations? Btw They say that;
**set java version for java;**
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
**set jvmTarget;**
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "11"
}
}