Class file version error with generated Parser class for custom language support



I was following the tutorial to create a plugin to support custom language but I encounter a problem at step 3/4 ( ) : error: cannot access GeneratedParserUtilBase
import static com.intellij.lang.parser.GeneratedParserUtilBase.*;

bad class file: .gradle\caches\modules-2\files-2.1\com.jetbrains.intellij.idea\ideaIC\2020.3.2\13938c2ba003ffe980f450345eea516cd9c2375f\ideaIC-2020.3.2\lib\platform-impl.jar(com/intellij/lang/parser/GeneratedParserUtilBase.class)
class file has wrong version 55.0, should be 52.0
Please remove or make sure it appears in the correct subdirectory of the classpath.

This happens when I try the run the IDE to test the plugin just at end of step 4, and since it concerns a generate class file I don't know what to do.

Anyone knows how to solve this error ?

Comment actions Permalink

Please use Java 8 SDK

Comment actions Permalink

I'm using JDK version 1.8.0_281

Comment actions Permalink

It builds, thanks.


Please sign in to leave a comment.