google / google/auto

AutoService: Intermittent "Error reading configuration file" while processing

Open
#739 5 comments 0 reactions 0 assignees View on GitHub
P3 type=defect
Dominant language
Java
Stars
10.6k
Forks
1.2k
Avg merge
6h 32m
Merged PRs (30d)
13

Description

I believe #718 may be happening for AutoService as well. I have these dependencies listed in my `build.gradle`:

```
implementation 'com.google.dagger:dagger:2.22.1'
implementation "com.google.dagger:dagger-spi:2.23.1"
implementation "com.google.auto.service:auto-service:1.0-rc5"
annotationProcessor "com.google.auto.service:auto-service:1.0-rc5"
```

If I build with `./gradlew --stop && ./gradlew build`, then I don't see the error (adding `org.gradle.daemon=false` to `gradle.properties` also works). Running `./gradlew build` twice yields the following error:

```
$ ./gradlew build
> Task :app:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileJava'.
> java.util.ServiceConfigurationError: dagger.spi.BindingGraphPlugin: Error reading configuration file

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
4 actionable tasks: 4 executed
```

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.