Godot 4.2.2 Gradle Build failure error

Godot Version

4.2.2

Question

When exporting gradle build i get this error

editor/export/editor_export_platform.h:182 - Export: Building of Android project failed, check output for the error:
  
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Could not open cp_settings generic class cache for settings file 'C:\Users\yasee\OneDrive\Documents\GodotPlatformer\android\build\settings.gradle' (C:\Users\yasee\.gradle\caches\8.2\scripts\4q30sfjl9o9m0vidtnj8l2d8l).
  > BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 66
  
  * 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 1s

My jdk version is 22

Install OpenJDK 17

1 Like

Thanks using jdk version 17 works!