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.
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...
...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.
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 inpackagingOptions
. 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.
Well, it looks like another dependency was requiring
kotlinx-serialization-runtime-common
, which caused the conflict with the actualkotlinx-serialization-runtime
implementation used by gitrest. Adding aresolutionStrategy
to the Android config should resolve this...Alright, Kotlin/kotlinx.serialization#761 is probably the issue to watch here.
This can be temporary solved in implementing libraries by using...
...however, that shouldn't be a permanent fix. Hopefully, once a new version of kotlinx.serialization is released, this can be closed for good.