My Android build keeps failing, and i cannot find a solution to this. i get the following error message: ''1: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':react-native-webview:compileReleaseJavaWithJavac'. > Compilation failed; see the compiler error output for details. * 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. ============================================================================== 2: Task failed with an exception. ----------- * What went wrong: java.lang.StackOverflowError (no error message) * 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 3m 49s Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. See https://docs.gradle.org/7.5.1/***guide/command_line_interface.html#sec:command_line_warnings 746 actionable tasks: 720 executed, 26 up-to-date Error: /Users/runner/work/1/s/android/gradlew failed with return code: 1'' It seems like my java/gradle version is wrong? my current java version: 20 Gradle version: 7.5.1 Can someone help me with this problem? i cannot find any solutions anywhere,
asked
Beau van der Meer
3 answers
1
Please follow the image to add the path in preference
answered
Lavanya R
0
Hi Beau,
Your Gradle version should be greater than to equal to 7.6
answered
Lavanya R
0
Hi Beau,
Did you upgrade your Native Mobile Resources module because react-native-webview is included in that module. Also custom widgets like Render HTML by Appronto might use an older version of react-native-webview which is not compatible with the newer Gradle.