In my fairly complex build I’ve started to get thi...
# community-support
s
In my fairly complex build I’ve started to get this error when I run Gradle: > Error resolving plugin [id: ‘FOO’, version: ’1.+’] > > The request for this plugin could not be satisfied because the plugin is already on the classpath with an unknown version, so compatibility cannot be checked. (FOO is a plugin we’re using.) If I remove the version from the FOO plugin, I get this error (from a different invocation of Gradle): > Plugin [id: ‘FOO’] was not found in any of the following sources: > - Gradle Core Plugins (not a core plugin. For more available plugins, please refer to https://docs.gradle.org/8.9/userguide/plugin_reference.html in the Gradle documentation.) > - Included Builds (None of the included builds contain this plugin) > - Plugin Repositories (plugin dependency must include a version number for this source) What should I do? Also, why did I not get this error originally but only started to get it once I tried running
./gradlew --refresh-dependencies
?
Looks like adding the plugins to the root build with
apply false
is the solution.
Though I’d still like to understand why it worked for some time and then stopped.
v
Hard to say without seeing the build