Execution failed for task ':compileKotlinMetadata'.
> Error while evaluating property 'filteredArgumentsMap' of task ':compileKotlinMetadata'
> Could not resolve all files for configuration ':metadataCompileClasspath'.
> Could not resolve io.github.aakira:napier:2.2.0.
Required by:
project :
> The consumer was configured to find a usage of 'kotlin-api' of a library, preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common'. However we cannot choose between the following variants of io.github.aakira:napier:2.2.0:
- commonMainMetadataElements
- debugApiElements-published
- debugRuntimeElements-published
- iosArm64ApiElements-published
- iosSimulatorArm64ApiElements-published
- iosX64ApiElements-published
- jsIrApiElements-published
- jsLegacyApiElements-published
- jvmApiElements-published
- jvmRuntimeElements-published
- macosArm64ApiElements-published
- macosX64ApiElements-published
- releaseApiElements-published
- releaseRuntimeElements-published
- tvosArm64ApiElements-published
- tvosSimulatorArm64ApiElements-published
- tvosX64ApiElements-published
- watchosArm32ApiElements-published
- watchosArm64ApiElements-published
- watchosSimulatorArm64ApiElements-published
- watchosX64ApiElements-published
All of them match the consumer attributes:
- Variant 'commonMainMetadataElements' capability io.github.aakira:napier:2.2.0 declares a usage of 'kotlin-api' of a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common':
- Unmatched attributes:
- Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
- Provides release status but the consumer didn't ask for it
- …
Version 1.6.0 gives no such error.
So far, I had this problem with Napier only. So, I'm reporting it here.
build.gradle.kts
:Run
gradle assemble
and see:Version 1.6.0 gives no such error.
So far, I had this problem with Napier only. So, I'm reporting it here.