How to fix “unsupported class file major version 60” in IntelliJ?
8
I have a Gradle project in Ubuntu. It's written in Java 14. I have the Java 14 JDK installed. When I build it from the command line, everything works, but no one wants to use a command line! When I open it in IntelliJ Idea, it throws an error: * Where: Initialization script '/tmp/ijmapper.gradle` * What went wrong: Could not compile initialization script '/tmp/ijmapper.gradle`. > Startup failed: General error during semantic analysis: Unsupported class file major version 60. followed by a long, unhelpful stack trace that says a lot about Groovy. (The project is not a Groovy project; it's a Java project.) Major version 60 refers to Java 16, which this project is not using. I've already gone into Project Structure and made sure that it...