该项目使用的Gradle 2.12与在Java 10或更高版本上运行的IDEA不兼容 [英] The project uses Gradle 2.12 which is incompatible with IDEA running on Java 10 or newer

查看:6121
本文介绍了该项目使用的Gradle 2.12与在Java 10或更高版本上运行的IDEA不兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用Intellij Idea导入Gradle Java项目时,出现错误

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.

我的Intellij Idea版本是

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: 

如何解决此问题?

推荐答案

我已经找到了解决方案.在Intellij上,按Ctrl + shift + a->切换启动JDK->选择JDK版本

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

另一种解决方案是使用Intellij Utimate Edition.选择文件/设置并配置Gradle和Java版本

Another solution is use Intellij Utimate Edition. Choose file/Setting and configure Gradle and Java version

这篇关于该项目使用的Gradle 2.12与在Java 10或更高版本上运行的IDEA不兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆