grails-core: Grails 3.0.4 incompatible with Gradle 2.3
I installed the newest version of Grails and received an error when attempting to run the grails
command in the terminal (Mac OS X).
The error reported:
| Error Error initializing classpath: Unsupported method: GrailsClasspath.getError(). The version of Gradle you connect to does not support that method.
This error also occurs with Grails 3.0.3 but does not occur with 3.0.1.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 27 (9 by maintainers)
Same here, the version of Grails defined in gradle.properties should be the same as the one installed under “GRAILS_HOME”.
I think the issue is that one version of gradle was running and built out the dependencies and caches and everything and then created alot of confusion with the pathing (perhaps). I have done this a couple times now and cleaned my gradle caches, the .dependencies, stop the service (and comment out bash.bashrc path for GRADLE_HOME/bin and logout/log back in) and then done a clean/build and everything seems to be fine.
Like @graemerocher says, make sure you are not using a secondary Gradle in the background… at all. But also clean out all references in that version and all references TO that version (in case you already used it).
This happens when you have an incompatible Gradle daemon running in the background. To fix the problem you need to stop the daemon so it can be restarted with a compatible version: