Thu*_*yen 12 java intellij-idea gradle
当我导入 Gradle Java 项目时Intellij Idea
出现错误
The project uses Gradle 2.12 which is incompatible with IDEA running on Java 10 or newer.
Run Code Online (Sandbox Code Playgroud)
我的 Intellij Idea 版本是
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:
Run Code Online (Sandbox Code Playgroud)
如何解决这个问题?
Thu*_*yen 12
我已经找到了解决方案。在 Intellij 上按 Ctrl+shift+a -> 切换启动 JDK -> 选择 JDK 版本
另一种解决方案是使用 Intellij Utimate Edition。选择文件/设置并配置 Gradle 和 Java 版本
小智 7
如果您在 IDEA 中没有找到 switch boot JDK 选项,您可以使用
“选择运行时”插件。
https://www.jetbrains.com/help/idea/switching-boot-jdk.html
如果你想在行动,试图Ctrl+ shift+A 然后键入选择运行,在弹出的对话框中选择运行时间选择要运行。
小智 6
在 Intellij 上按 Ctrl+shift+a -> 选择运行时 -> 选择 JDK 版本
如果您没有看到该选项,请从 Marketplace
下载并安装“选择运行时”( https://plugins.jetbrains.com/plugin/12836-choose-runtime )
归档时间: |
|
查看次数: |
19810 次 |
最近记录: |