Android Export Error: Unsupported class file major version 65

Godot Version

4.2.1

Question

On Ubuntu 22.04 I followed the Export for Android Docs HERE

Installed the Exported Templates and try to export using “Build with Grandle”… this is the error message:

FAILURE: Build failed with an exception.

* Where:
Settings file '/home/fabio/Desktop/godot-master/platform/android/java/settings.gradle'

* What went wrong:
Could not compile settings file '/home/fabio/Desktop/godot-master/platform/android/java/settings.gradle'.
> startup failed:
  General error during conversion: Unsupported class file major version 65
  
  java.lang.IllegalArgumentException: Unsupported class file major version 65
        at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:199)
        at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:180)
        at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:166)
        at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:287)

I need some help, please.

I just solved the issue, I had installed the JRE version 21 and the JDK version 17, removing the wrong JRE fixed my issue! :wink:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.