#5 Duplicate META-INF files in android/jvm target

Open
opened 8 months ago by james · 2 comments
james commented 8 months ago

Multiple META-INF/*.kotlin_module files are being included for certain libraries in the project - causing build errors for downstream users without specifying to either merge/exclude them in packagingOptions. There appears to be a bug in Google's issue tracker about this.

It looks like kotlinx.serialization is the only actual dependency causing this issue at the moment.

Multiple `META-INF/*.kotlin_module` files are being included for certain libraries in the project - causing build errors for downstream users without specifying to either merge/exclude them in `packagingOptions`. There appears to be [a bug in Google's issue tracker](https://issuetracker.google.com/issues/125696148) about this. It looks like [kotlinx.serialization](https://github.com/Kotlin/kotlinx.serialization) is the only actual dependency causing this issue at the moment.
james commented 8 months ago
Owner

Well, it looks like another dependency was requiring kotlinx-serialization-runtime-common, which caused the conflict with the actual kotlinx-serialization-runtime implementation used by gitrest. Adding a resolutionStrategy to the Android config should resolve this...

Well, it looks like another dependency was requiring `kotlinx-serialization-runtime-common`, which caused the conflict with the actual `kotlinx-serialization-runtime` implementation used by gitrest. Adding a `resolutionStrategy` to the Android config should resolve this...
james referenced this issue from a commit 8 months ago
james referenced this issue from a commit 8 months ago
james referenced this issue from a commit 8 months ago
james commented 8 months ago
Owner

Alright, Kotlin/kotlinx.serialization#761 is probably the issue to watch here.

This can be temporary solved in implementing libraries by using...

implementation ("dev.horrific.code.james.git-rest-wrapper:gitrest:$gitrest_version") {
    exclude group: "org.jetbrains.kotlinx", module: "kotlinx-serialization-runtime-common"
}

...however, that shouldn't be a permanent fix. Hopefully, once a new version of kotlinx.serialization is released, this can be closed for good.

Alright, [Kotlin/kotlinx.serialization#761](https://github.com/Kotlin/kotlinx.serialization/issues/761) is probably the issue to watch here. This can be temporary solved in implementing libraries by using... ```groovy implementation ("dev.horrific.code.james.git-rest-wrapper:gitrest:$gitrest_version") { exclude group: "org.jetbrains.kotlinx", module: "kotlinx-serialization-runtime-common" } ``` ...however, that shouldn't be a permanent fix. Hopefully, once a new version of kotlinx.serialization is released, this can be closed for good.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.