After updating from version 2.39.1 to version 2.40, the build failure occurs when syncing gradle (error logs below).
dagger-2.40-syncing-issue.txt
I think the problem is:
org.gradle.api.UnknownDomainObjectException: KotlinJvmAndroidCompilation with name 'prodReleaseUnitTest' not found
I could not find any satisfactory explanations on how to deal with this error.
Some details about the project:
- gradle version 7.0.3 (Android Studio 2020.3.1 Patch 3)
- buildTypes: debug and release.
flavorDimensions "scope"
productFlavors {
prod {
dimension "scope"
}
}
- There are no test folders in the project (also, the test dependencies were removed).
- The same error occurs when syncing using prodDebug or prodRelease.
Working scenarios:
1- Using version 2.39.1 or below
2- Adding this to the build.gradle file in the android config:
hilt { enableAggregatingTask = false }
Any help is greatly appreciated, as we have to update around 10 to 15 android projects, and we prefer using Dagger's recommendation (of keeping enableAggregatingTask to true).
After updating from version 2.39.1 to version 2.40, the build failure occurs when syncing gradle (error logs below).
dagger-2.40-syncing-issue.txt
I think the problem is:
org.gradle.api.UnknownDomainObjectException: KotlinJvmAndroidCompilation with name 'prodReleaseUnitTest' not foundI could not find any satisfactory explanations on how to deal with this error.
Some details about the project:
Working scenarios:
1- Using version 2.39.1 or below
2- Adding this to the build.gradle file in the android config:
hilt { enableAggregatingTask = false }Any help is greatly appreciated, as we have to update around 10 to 15 android projects, and we prefer using Dagger's recommendation (of keeping
enableAggregatingTaskto true).