Unable to run application with Gradle: Error: Could not find or load main class 1.8

Unable to run application with Gradle: Error: Could not find or load main class 1.8

我正在使用 IntelliJ Idea 2017.3 和任何 Gradle 项目(即使是来自 GitHub 的简单 'hello world')我总是遇到下一个错误:

"Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/3.5-rc-2/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error: Could not find or load main class 1.8"

与此同时,如果我 运行 一个带有 Gradle 包装器的应用程序(在我的例子中是 gradlew.bat),一切都会完美运行。对我来说,这看起来像是配置错误的问题,但我无法在 Idea 配置或任何其他地方找到我做错了什么。我很感激任何帮助或线索在哪里挖掘。

问题已解决,希望与所有遇到类似问题的人分享这一知识。 就我而言,我不得不从 IDEA 配置目录 中删除两个配置文件 gradle.experimental.xmlgradle.settings.xml ]%IDEA_HOME%\config\options。我想它们是在我在我的电脑上全局安装 Gradle 时创建的。即使在我删除全局安装的 Gradle 并开始使用 Gradle 的包装器后,这些设置仍然存在。