Idea 2017.1 Unable to refresh/import Gradle project "Error:No signature of method"
Answered
Fails with:
Error:No signature of method: org.gradle.internal.service.scopes.ProjectScopeServices.getAll() is applicable for argument types: (java.lang.Class) values: [interface org.gradle.tooling.provider.model.ToolingModelBuilderRegistry]
Possible solutions: get(java.lang.Class), getAt(java.lang.String), get(java.lang.reflect.Type), getClass(), findAll(), findAll(groovy.lang.Closure)
It works fine in 2016. But in 2017 the project will not refresh/import and thus cannot be built. It is not my project and I know next to nothing about Gradle.
Did something change in how it needs to be configured?
It would be great if it'd work in 2017. For now I'm continuing working in 2016 for this project.
Please sign in to leave a comment.
What Gradle version do you use? Does it work with the recent Gradle version?
How do I find the Gradle version?
Presumably it uses whichever is in the project.
See http://stackoverflow.com/questions/25205113/how-to-change-the-version-of-the-default-gradle-wrapper-in-intellij-idea
Forcing it to use the most recent Gradle version seems to have fixed it! Thanks!