Wrong java and kotlin version
Lumca opened this issue · comments
Execution failed for task ':capacitor-inappbrowser:compileDebugKotlin'.
'compileDebugJavaWithJavac' task (current target is 21) 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
I had to fix it by going to the plugin in node and change
compileOptions {
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}
to
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
Hey @Lumca , I believe this does not happen in the latest plugin version, if you could try updating the plugin and test again, thank you!
Closing this issue because it does not happen with latest version of the plugin