Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Included builds are not yet available for this build. #39

Open
changusmc opened this issue Oct 25, 2023 · 1 comment
Open

Included builds are not yet available for this build. #39

changusmc opened this issue Oct 25, 2023 · 1 comment

Comments

@changusmc
Copy link

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
@rharter
Copy link
Collaborator

rharter commented Dec 9, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants