Skip to content

The library versions don't match. Expected 'unspecified', found '0.23.0' #365

@jeffdgr8

Description

@jeffdgr8

When building my library after updating atomicfu to 0.23.0, I get this error:

> Task :couchbase-lite:cinteropCouchbaseLiteIosSimulatorArm64 FAILED
w: skipping /Users/jeff/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/atomicfu-iossimulatorarm64/0.23.0/10b6de0b94aceaca2bf723ec1cdedc261232cfd5/atomicfu-cinterop-interop.klib. The library versions don't match. Expected 'unspecified', found '0.23.0'
e: Could not find "org.jetbrains.kotlinx:atomicfu-cinterop-interop" in [/Users/jeff/Documents/GitHub/kotbase/couchbase-lite, /Users/jeff/.konan/klib, /Users/jeff/.konan/kotlin-native-prebuilt-macos-x86_64-1.9.20/klib/common, /Users/jeff/.konan/kotlin-native-prebuilt-macos-x86_64-1.9.20/klib/platform/ios_simulator_arm64]

Based on this Slack thread, this seems to be caused by another dependency (kotlinx-coroutines) depending on an older version of atomicfu (0.21.0), which is published with cinterop version "unspecified", which conflicts with the newer version, published with cinterop version 0.23.0 because it was built with Kotlin 1.9.20.

Related Kotlin YouTrack issue

You may be able to work around this by forcing the publication to behave as it used to with Kotlin 1.9.10, as is done here.

Metadata

Metadata

Assignees

Labels

regressionMajor regressions that were not caught in advance and were discovered after the releaseroot-cause-definedThe root cause of the regression is defined and preventive steps are taken.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions