Не удалось выполнить задачу «:base:collectDependities»Android

Форум для тех, кто программирует под Android
Ответить
Anonymous
 Не удалось выполнить задачу «:base:collectDependities»

Сообщение Anonymous »

Я новичок в AGP и Gradle.
Но мне нужно собрать проект, который был обновлен до AGP 8.7.3 и Gradle 8.9.
Структура проекта:

приложение

   |-base

   |     |-администратор

   |     |-сеть

   |     |-другие модули...

   |-другие модули...

После обновления при сборке проекта возникла ошибка:
> The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.7.3',
attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug',
attribute 'com.android.build.api.attributes.ProductFlavor:contentType' with value 'demo',
attribute 'com.android.build.api.attributes.ProductFlavor:environment' with value 'production',
attribute 'com.android.build.api.attributes.ProductFlavor:standard' with value 'isoStandard',
attribute 'com.android.build.api.attributes.ProductFlavor:type' with value 'isoAdmin',
attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm'.
However we cannot choose between the following variants of project :admin:
- Configuration ':admin:productionIsoAdminIsoStandardDemoDebugApiElements' variant android-classes-jar declares a library for use during compile-time, preferably optimized for Android, as well as
attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.7.3',
attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug',
attribute 'com.android.build.api.attributes.ProductFlavor:contentType' with value 'demo',
attribute 'com.android.build.api.attributes.ProductFlavor:environment' with value 'production',
attribute 'com.android.build.api.attributes.ProductFlavor:standard' with value 'isoStandard',
attribute 'com.android.build.api.attributes.ProductFlavor:type' with value 'isoAdmin',
attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Unmatched attributes:
- Provides attribute 'artifactType' with value 'android-classes-jar' but the consumer didn't ask for it
- Provides attribute 'com.android.build.gradle.internal.attributes.VariantAttr' with value 'productionIsoAdminIsoStandardDemoDebug' but the consumer didn't ask for it
- Provides attribute 'contentType' with value 'demo' but the consumer didn't ask for it
- Provides attribute 'environment' with value 'production' but the consumer didn't ask for it
- Provides attribute 'standard' with value 'isoStandard' but the consumer didn't ask for it
- Provides attribute 'type' with value 'isoAdmin' but the consumer didn't ask for it
- Provides its elements packaged as a jar but the consumer didn't ask for it
- Configuration ':admin:productionIsoAdminIsoStandardDemoDebugApiElements' variant android-lint declares a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.7.3',
attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug',
attribute 'com.android.build.api.attributes.ProductFlavor:contentType' with value 'demo',
attribute 'com.android.build.api.attributes.ProductFlavor:environment' with value 'production',
attribute 'com.android.build.api.attributes.ProductFlavor:standard' with value 'isoStandard',
attribute 'com.android.build.api.attributes.ProductFlavor:type' with value 'isoAdmin',
attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Unmatched attributes:
- Provides attribute 'artifactType' with value 'android-lint' but the consumer didn't ask for it
- Provides attribute 'com.android.build.gradle.internal.attributes.VariantAttr' with value 'productionIsoAdminIsoStandardDemoDebug' but the consumer didn't ask for it
- Provides attribute 'contentType' with value 'demo' but the consumer didn't ask for it
- Provides attribute 'environment' with value 'production' but the consumer didn't ask for it
- Provides attribute 'standard' with value 'isoStandard' but the consumer didn't ask for it
- Provides attribute 'type' with value 'isoAdmin' but the consumer didn't ask for it
- Provides its elements packaged as a jar but the consumer didn't ask for it
- Configuration ':admin:productionIsoAdminIsoStandardDemoDebugApiElements' variant android-lint-local-aar declares a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.7.3', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.ProductFlavor:contentType' with value 'demo', attribute 'com.android.build.api.attributes.ProductFlavor:environment' with value 'production', attribute 'com.android.build.api.attributes.ProductFlavor:standard' with value 'isoStandard', attribute 'com.android.build.api.attributes.ProductFlavor:type' with value 'isoAdmin', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Unmatched attributes:
- Provides attribute 'artifactType' with value 'android-lint-local-aar' but the consumer didn't ask for it
- Provides attribute 'com.android.build.gradle.internal.attributes.VariantAttr' with value 'productionIsoAdminIsoStandardDemoDebug' but the consumer didn't ask for it
- Provides attribute 'contentType' with value 'demo' but the consumer didn't ask for it
- Provides attribute 'environment' with value 'production' but the consumer didn't ask for it
- Provides attribute 'standard' with value 'isoStandard' but the consumer didn't ask for it
- Provides attribute 'type' with value 'isoAdmin' but the consumer didn't ask for it
- Configuration ':admin:productionIsoAdminIsoStandardDemoDebugApiElements' variant android-manifest declares a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.7.3', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.ProductFlavor:contentType' with value 'demo', attribute 'com.android.build.api.attributes.ProductFlavor:environment' with value 'production', attribute 'com.android.build.api.attributes.ProductFlavor:standard' with value 'isoStandard', attribute 'com.android.build.api.attributes.ProductFlavor:type' with value 'isoAdmin', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Unmatched attributes:
- Provides attribute 'artifactType' with value 'android-manifest' but the consumer didn't ask for it
- Provides attribute 'com.android.build.gradle.internal.attributes.VariantAttr' with value 'productionIsoAdminIsoStandardDemoDebug' but the consumer didn't ask for it
- Provides attribute 'contentType' with value 'demo' but the consumer didn't ask for it
- Provides attribute 'environment' with value 'production' but the consumer didn't ask for it
- Provides attribute 'standard' with value 'isoStandard' but the consumer didn't ask for it
- Provides attribute 'type' with value 'isoAdmin' but the consumer didn't ask for it
- Configuration ':admin:productionIsoAdminIsoStandardDemoDebugApiElements' variant android-renderscript declares a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.7.3', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.ProductFlavor:contentType' with value 'demo', attribute 'com.android.build.api.attributes.ProductFlavor:environment' with value 'production', attribute 'com.android.build.api.attributes.ProductFlavor:standard' with value 'isoStandard', attribute 'com.android.build.api.attributes.ProductFlavor:type' with value 'isoAdmin', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Unmatched attributes:
- Provides attribute 'artifactType' with value 'android-renderscript' but the consumer didn't ask for it
- Provides attribute 'com.android.build.gradle.internal.attributes.VariantAttr' with value 'productionIsoAdminIsoStandardDemoDebug' but the consumer didn't ask for it
- Provides attribute 'contentType' with value 'demo' but the consumer didn't ask for it
- Provides attribute 'environment' with value 'production' but the consumer didn't ask for it
- Provides attribute 'standard' with value 'isoStandard' but the consumer didn't ask for it
- Provides attribute 'type' with value 'isoAdmin' but the consumer didn't ask for it
- Configuration ':admin:productionIsoAdminIsoStandardDemoDebugApiElements' variant android-symbol-with-package-name declares a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.7.3', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.ProductFlavor:contentType' with value 'demo', attribute 'com.android.build.api.attributes.ProductFlavor:environment' with value 'production', attribute 'com.android.build.api.attributes.ProductFlavor:standard' with value 'isoStandard', attribute 'com.android.build.api.attributes.ProductFlavor:type' with value 'isoAdmin', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Unmatched attributes:
- Provides attribute 'artifactType' with value 'android-symbol-with-package-name' but the consumer didn't ask for it
- Provides attribute 'com.android.build.gradle.internal.attributes.VariantAttr' with value 'productionIsoAdminIsoStandardDemoDebug' but the consumer didn't ask for it
- Provides attribute 'contentType' with value 'demo' but the consumer didn't ask for it
- Provides attribute 'environment' with value 'production' but the consumer didn't ask for it
- Provides attribute 'standard' with value 'isoStandard' but the consumer didn't ask for it
- Provides attribute 'type' with value 'isoAdmin' but the consumer didn't ask for it
- Configuration ':admin:productionIsoAdminIsoStandardDemoDebugApiElements' variant jar declares a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.7.3', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.ProductFlavor:contentType' with value 'demo', attribute 'com.android.build.api.attributes.ProductFlavor:environment' with value 'production', attribute 'com.android.build.api.attributes.ProductFlavor:standard' with value 'isoStandard', attribute 'com.android.build.api.attributes.ProductFlavor:type' with value 'isoAdmin', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Unmatched attributes:
- Provides attribute 'artifactType' with value 'jar' but the consumer didn't ask for it
- Provides attribute 'com.android.build.gradle.internal.attributes.VariantAttr' with value 'productionIsoAdminIsoStandardDemoDebug' but the consumer didn't ask for it
- Provides attribute 'contentType' with value 'demo' but the consumer didn't ask for it
- Provides attribute 'environment' with value 'production' but the consumer didn't ask for it
- Provides attribute 'standard' with value 'isoStandard' but the consumer didn't ask for it
- Provides attribute 'type' with value 'isoAdmin' but the consumer didn't ask for it
- Provides its elements packaged as a jar but the consumer didn't ask for it
- Configuration ':admin:productionIsoAdminIsoStandardDemoDebugApiElements' variant r-class-jar declares a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.7.3', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.ProductFlavor:contentType' with value 'demo', attribute 'com.android.build.api.attributes.ProductFlavor:environment' with value 'production', attribute 'com.android.build.api.attributes.ProductFlavor:standard' with value 'isoStandard', attribute 'com.android.build.api.attributes.ProductFlavor:type' with value 'isoAdmin', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Unmatched attributes:
- Provides attribute 'artifactType' with value 'r-class-jar' but the consumer didn't ask for it
- Provides attribute 'com.android.build.gradle.internal.attributes.VariantAttr' with value 'productionIsoAdminIsoStandardDemoDebug' but the consumer didn't ask for it
- Provides attribute 'contentType' with value 'demo' but the consumer didn't ask for it
- Provides attribute 'environment' with value 'production' but the consumer didn't ask for it
- Provides attribute 'standard' with value 'isoStandard' but the consumer didn't ask for it
- Provides attribute 'type' with value 'isoAdmin' but the consumer didn't ask for it
- Provides its elements packaged as a jar but the consumer didn't ask for it```


Подробнее здесь: https://stackoverflow.com/questions/793 ... pendencies
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Android»