My IntelliJ init script doesn’t seem to work or exist

已回答
Hello, I am working my first piece of code, but when I run a gradle file in IntelliJ it comes up with an error FAILURE: Build failed with an exception. * Where: Initialization script 'C:\Users\MyUser\AppData\Local\Temp\ijresolvers.gradle' line: 339 * What went wrong: A problem occurred evaluating initialization script. > No signature of method: org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.whenReady() is applicable for argument types: (SetupUtpTestResultListenerAction) values: [SetupUtpTestResultListenerAction@7d8c1d6a] Possible solutions: whenReady(groovy.lang.Closure) * Try: Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
0

Hi Suchet,

Looks like a compatibility issue between Gradle and the JDK used in your project.

What version of JDK and Gradle do you use? It might help to change their versions in the IDE (try both more recent & older ones). You can change them in the File | Settings | Build, Execution, Deployment | Build Tools | Gradle dialog.

See also:

0

请先登录再写评论。