Код: Выделить всё
implementation project(path: ':Common')Проблема, с которой я столкнулся, заключается в том, что когда я пытаюсь построить проект, я получаю эту ошибку:
Код: Выделить всё
Could not determine the dependencies of task ':feature:...'.
> Could not resolve all task dependencies for configuration ':feature:...'.
> Could not resolve project :common.
Required by:
project :feature:... > project :common
> The consumer was configured to find a library for use during runtime, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.2.2', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm'. However we cannot choose between the following variants of project :comomon:
- googleDebugRuntimeElements
- huaweiDebugRuntimeElements
All of them match the consumer attributes:
- Variant 'googleDebugRuntimeElements' capability App:common:unspecified declares a library for use during runtime, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.2.2', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Unmatched attributes:
- Provides attribute 'com.android.build.api.attributes.ProductFlavor:pushService' with value 'google' but the consumer didn't ask for it
- Provides attribute 'com.android.build.gradle.internal.attributes.VariantAttr' with value 'googleDebug' but the consumer didn't ask for it
- Provides attribute 'pushService' with value 'google' but the consumer didn't ask for it
Код: Выделить всё
flavorDimensions += "pushService"
productFlavors {
google {
dimension "pushService"
}
}
Подробнее здесь: https://stackoverflow.com/questions/790 ... dependency
Мобильная версия