LibGDX latest, Ubuntu 20.04, OpenJDK 11, Gradle 6.7.1
Using above systems and first got below error -
Exception in thread "LWJGL Application" java.lang.NoClassDefFoundError: Could not initialize class org.lwjgl.Sys
Tried correcting it by changing below -
api "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
to
api "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
But now getting -
Could not run phased build action using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-6.7.1-bin.zip'.
Build file '<build.gradle project path>'
Could not compile build file '<build.gradle project path>'.
startup failed:
General error during semantic analysis: Unsupported class file major version 60
java.lang.IllegalArgumentException: Unsupported class file major version 60
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:196)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:177)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:163)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:284)
Any help would be appreciated !