Closed seanabraham closed 1 year ago
I have similar problem with coil-bom version 2.4.0 and AGP version 8.2.0-alpha13, AS version 2023.1.1 Canary 13
Same wit AGP 8.4.2: Failed to resolve: io.coil-kt:coil-bom:2.7.0
Unresolved dependencies
No matching variant of io.coil-kt:coil-bom:2.7.0 was found. 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.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.4.2', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- Variant 'apiElements' capability io.coil-kt:coil-bom:2.7.0 declares a component for use during compile-time:
- Incompatible because this component declares a platform and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '8.4.2')
- Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug')
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
- Variant 'enforcedApiElements' capability io.coil-kt:coil-bom-derived-enforced-platform:2.7.0 declares a component for use during compile-time:
- Incompatible because this component declares an enforced platform and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '8.4.2')
- Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug')
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
- Variant 'enforcedRuntimeElements' capability io.coil-kt:coil-bom-derived-enforced-platform:2.7.0 declares a component for use during runtime:
- Incompatible because this component declares an enforced platform and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '8.4.2')
- Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug')
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
- Variant 'runtimeElements' capability io.coil-kt:coil-bom:2.7.0 declares a component for use during runtime:
- Incompatible because this component declares a platform and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '8.4.2')
- Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug')
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')
Describe the bug I'm unable to use the coil-bom as a
platform
orenforcedPlatform
from Gradle 6.2. I think it's because coil-bom actually supplies Gradle Module Metadata (https://repo1.maven.org/maven2/io/coil-kt/coil-bom/2.2.2/coil-bom-2.2.2.module) which is somehow incorrect or incompatible with how Gradle 6.2 attempts to read that metadataLogs/Screenshots Dependency Insight gives the following resolution error which explains the module metadata mapping failure:
Version coil-bom 2.2.2