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
{{ message }}
This repository has been archived by the owner on Oct 31, 2022. It is now read-only.
On gradle sync, the compiler is failing and returning an error about a missing build variant:
org.gradle.api.UnknownDomainObjectException: KotlinJvmAndroidCompilation with name 'prodReleaseUnitTest' not found
What happened
I have raised the issue on Dagger's github project (Dagger issue #2990), and I was pointed out to remove plugins one by one, and turning off the OneSignal gradle plugin (and adding the necessary play-services-base) resulted in a successful gradle sync.
I was also pointed out to the following issue: Dagger issue #2744, where "resolving dependencies during task execution" might be the problem.
I will copy the other important parts of the discussion here (sorry, I was not able to add everything inside the quote):
I think the problem is:
org.gradle.api.UnknownDomainObjectException: KotlinJvmAndroidCompilation with name 'prodReleaseUnitTest' not found
gradle version 7.0.3 (Android Studio 2020.3.1 Patch 3)
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 }
Please find the proposed solution by @danysantiago for the oss-licenses-plugin here: Issue #2774 solution. It may be related to when the dependencies are being checked.
The text was updated successfully, but these errors were encountered:
Project Setup
build.gradle
(some information changed or removed because this is our company's code)app/build.gradle
(some information changed or removed because this is our company's code)Full Error
dagger-2.40-syncing-issue
Short version
On gradle sync, the compiler is failing and returning an error about a missing build variant:
What happened
I have raised the issue on Dagger's github project (Dagger issue #2990), and I was pointed out to remove plugins one by one, and turning off the OneSignal gradle plugin (and adding the necessary play-services-base) resulted in a successful gradle sync.
I was also pointed out to the following issue: Dagger issue #2744, where "resolving dependencies during task execution" might be the problem.
I will copy the other important parts of the discussion here (sorry, I was not able to add everything inside the quote):
Please find the proposed solution by @danysantiago for the
oss-licenses-plugin
here: Issue #2774 solution. It may be related to when the dependencies are being checked.The text was updated successfully, but these errors were encountered: