Skip to content

Compile error when Gradle Build Cache enabled #190

Open
@rtpHarry

Description

@rtpHarry

Describe the bug
I enabled the gradle build cache which said that it was compatible but now i'm seeing this error in the build log:

Configuration cache problems found in this build.

1 problem was found storing the configuration cache.
- Task `:capacitor-community-firebase-analytics:unMock` of type `de.mobilej.UnMockTask`: invocation of 'Task.project' at execution time is unsupported.
  See https://docs.gradle.org/8.9/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution

See the complete report at file:///Users/username/apppath/android/build/reports/configuration-cache/27rl6o81t6ctz1uj5vni83a2w/2ljzskoqeejt3ma7iaf60stcq/configuration-cache-report.html
> Invocation of 'Task.project' by task ':capacitor-community-firebase-analytics:unMock' at execution time is unsupported.

To Reproduce
Steps to reproduce the behavior:

  1. Enable the build cache in Android Studio
  2. Build a project that uses this plugin
  3. See error in build log

Expected behavior
I don't know, ideally it would be compatible as the cache speeds up build times, but I dont know if the usage is avoidable.

Additional context
ChatGPT provides additional context here: https://chatgpt.com/share/b6649157-9dc1-4cf8-84da-d0fef67562d8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions