我已经下载了LibGDX设置应用程序,当尝试使用IDEA插件支持构建项目时,我得到了:
FAILURE: Build failed with an exception.
* What went wrong:
Task 'idea' not found in root project 'Game'.
* Try:
Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
我已经将带有apply plugin: 'idea'
的init.gradle添加到C:\ Users \ user.gradle来激活IDEA插件,现在我得到:
FAILURE: Build failed with an exception.
* Where:
Initialization script 'C:\Users\user\.gradle\init.gradle' line: 1
* What went wrong:
A problem occurred evaluating initialization script.
> Failed to apply plugin [id 'org.gradle.idea']
> Could not create plugin of type 'IdeaPlugin'.
> Unable to determine constructor argument #3: missing parameter of interface org.gradle.plugins.ide.internal.IdeArtifactRegistry, or no service of type interface org.gradle.plugins.ide.internal.IdeArtifactRegistry
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
是否有人在此之前/知道如何解决此问题?
谢谢。