dagger icon indicating copy to clipboard operation
dagger copied to clipboard

after add hilt { enableAggregatingTask = true } dependencies tasks faild

Open cquin89 opened this issue 4 years ago • 0 comments

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" } }

cquin89 avatar Jul 27 '21 15:07 cquin89