当我使用 Intellij Idea
我收到错误
The project uses Gradle 2.12 which is incompatible with IDEA running on Java 10 or newer.
我的 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:
如何解决这个问题?
原文由 Anh Thu 发布,翻译遵循 CC BY-SA 4.0 许可协议
我已经找到了解决方案。在 Intellij 上按 Ctrl+shift+a -> 切换启动 JDK -> 选择 JDK 版本
另一种解决方案是使用 Intellij Utimate Edition。选择文件/设置并配置 Gradle 和 Java 版本