Getting error on Gradle for Exporting AAB on Godot 4.2.2 stable

Godot Version

Godot 4.2.2 stable


I’m encountering an “Unsupported class file major version 66” error while exporting my Godot project to Android. It seems related to an incompatible Java version. Has anyone successfully resolved this issue by adjusting their Java or Gradle settings, and if so, could you share the steps you took?

1 Like

Hello there. I’m getting the exact same error and getting so stressed… Did you find any solution? Thanks

I had the same problem i went through a lot !!
here is the solution:
install Java version 17
on godot editor setting set new jdk path
delete android build template folder and create it again

if you have another java version installed it could be a pain,
you have to uninstall and clear all residuals to new java can be active