The project uses Gradle 2.12 which is incompatible with IDEA running on Java 10 or newer

我是研究僧i 提交于 2020-02-22 06:55:50

问题


When i import my Gradle Java project with Intellij Idea i get error

The project uses Gradle 2.12 which is incompatible with IDEA running on Java 10 or newer.

My Intellij Idea version is

IntelliJ IDEA 2019.2 (Community Edition)
Build #IC-192.5728.98, built on July 23, 2019
Runtime version: 1.8.0_211-b12 amd64
VM: Java HotSpot(TM) 64-Bit Server VM by Oracle Corporation
Linux 4.15.0-20-generic
GC: ParNew, ConcurrentMarkSweep
Memory: 1956M
Cores: 4
Registry: git.explicit.commit.renames.prohibit.multiple.calls=false
Non-Bundled Plugins: 

How to fix this issue?


回答1:


I have found a solution for this. On Intellij press Ctrl+shift+a -> Switch Boot JDK ->choose JDK version

Another solution is use Intellij Utimate Edition.




回答2:


In case if you didn't find switch boot JDK option in IDEA you can use
"choose runtime" plugin.

https://www.jetbrains.com/help/idea/switching-boot-jdk.html

if you want it in action, try Ctrl + shift + A then type choose runtime , in the dialog choose run time select the runtime you want.



来源:https://stackoverflow.com/questions/58447285/the-project-uses-gradle-2-12-which-is-incompatible-with-idea-running-on-java-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!