square / dagger

A fast dependency injector for Android and Java.
https://square.github.io/dagger/
Apache License 2.0
7.31k stars 3.06k forks source link

after add hilt { enableAggregatingTask = true } dependencies tasks faild #577

Open cquin89 opened 3 years ago

cquin89 commented 3 years ago

when I add the line hilt { enableAggregatingTask = true} error (Execution failed for task ':app:dependencies) happend

Execution failed for task ':app:dependencies'. Cannot change dependencies of dependency configuration ':app:hmsDebugAndroidTestRuntimeClasspath' after it has been included in dependency resolution. Use 'defaultDependencies' instead of 'beforeResolve' to specify default dependencies for a configuration.

The task fails when I add a flavor that starts with a letter greater than g

Example:

flavorDimensions "version" productFlavors{ hms{ dimension "version" } gms{ dimension "version" } }