You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
I'm registering my implementation for dagger.spi.BindingGraphPlugin via AutoService. If I write the resources/META-INF/services/dagger.spi.BindingGraphPlugin file explicitly (ie, stop using AutoService) then I don't get these errors.
Perhaps it's not a problem within AutoService though, but rather a race condition between the two annotation processors (since dagger is also an annotation processor). I'll try to collect more information.
@eamonnmcmanus who is probably our local expert on ServiceLoader weirdness. Should we be releasing the ServiceLoader alternative that AutoValue uses as a separate, standalone library?
I believe #718 may be happening for AutoService as well. I have these dependencies listed in my
build.gradle
:If I build with
./gradlew --stop && ./gradlew build
, then I don't see the error (addingorg.gradle.daemon=false
togradle.properties
also works). Running./gradlew build
twice yields the following error:The text was updated successfully, but these errors were encountered: