focus
focus copied to clipboard
Included builds are not yet available for this build.
We recently migrated from buildSrc
to convention plugins which are being pulled in as an includeBuild
in our settings.gradle
.
Currently, I only have our app module in settings-all.gradle
and the original settings.gradle
file has the rest of the existing logic
pluginManagement {
includeBuild("build-logic")
}
plugins {
...
}
include("...")
This is the error we're getting
> Task :library:repository:createFocusSettings FAILED
1 problem was found storing the configuration cache.
- Task `:library:repository:createFocusSettings` of type `com.dropbox.focus.CreateFocusSettingsTask`: invocation of 'Task.project' at execution time is unsupported.
See https://docs.gradle.org/8.0/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution
See the complete report at file:///Users/changd/code/android/build/reports/configuration-cache/c2kiincfd0w2hzkql27qyhlqc/8pf9nvszsnq578qy2l4bu38yi/configuration-cache-report.html
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/changd/code/android/build.gradle' line: 29
* What went wrong:
Error resolving plugin [id: 'org.gradle.android.cache-fix', version: '2.7.1', apply: false]
> Included builds are not yet available for this build.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 3s
10 actionable tasks: 1 executed, 9 up-to-date
Can you share what your build file looks like? Particularly around line 29? That error seems to come from Gradle, making it look like you might be calling includedBuilds()
before it's been set.
The error about the createFocusSettings
task not being cacheable isn't surprising, since it's not cacheable.
I'm not seeing anything in the task that might trigger an error like this, unless it's simply the fact that it's evaluating the projects to gather their dependencies. A stack trace or some more information about your build might be helpful, here.