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

Answered
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
1 comment

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

Please sign in to leave a comment.