First of all, I read similar questions and none of them could help me solve it. I use Gradle for building the project. Although I'm using Java 12 (Java 12 is written in the project structure, module settings and run configs) and I tried invalidating the caches and restart. I still keep getting the error I mentioned in the title when I start running my program. Does anyone have any idea on the possible solution?
Your can select the correct JDK under:
Intellij IDEA -> Preferences -> Build, Execution, Deployment -> Build Tools -> Gradle -> Gradle JVM
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With