Hi! I'm trying to build an app but i'm stuck at th...
# community-support
j
Hi! I'm trying to build an app but i'm stuck at this problem. Can anyone help?
Copy code
Execution failed for task ':react-native-navigation:compileReactNative71ReleaseKotlin'.
>
'compileReactNative71ReleaseJavaWithJavac' task (current target is 17) and 'compileReactNative71ReleaseKotlin' task (current target is 1.8) jvm target compatibility should be set to the same Java version.
  Consider using JVM toolchain: <https://kotl.in/gradle/jvm/toolchain>
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at <https://help.gradle.org>.
BUILD FAILED in 5m 3s
242 actionable tasks: 242 executed
Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
v
The react-native-navigation build is written with and for Gradle 5.4.1. I guess it simply is not compatible with Gradle 8+ which you most probably are using.