capacitor-community / capacitor-community/firebase-analytics

Compile error when Gradle Build Cache enabled

Open
#190 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
178
Forks
70
PR merge metrics
No merged PRs in 30d

Description

**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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.