arrow icon indicating copy to clipboard operation
arrow copied to clipboard

Merging conflicts for arrow fx-coroutines & resilience 1.2.4

Open devopsmishel opened this issue 11 months ago • 5 comments

Hey, I have ran into an issue where building my app in CI fails with the following exception:

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:mergeMyresConfigsReleaseJavaResource'.

A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction 2 files found with path 'nativeMain/default/linkdata/root_package/0_.knm' from inputs:

  - /var/workspace/MISC.vcu_maindev.multi-PR.OnDemand.github/out/gradle/.intermediates/vendor/gm/packages/services/GMEnergyAssist/.gradle/caches/transforms-3/5cb93b09a56cf1bed0b62a46cf738137/transformed/jetified-arrow-fx-coroutines-1.2.4.jar

  - /var/workspace/MISC.vcu_maindev.multi-PR.OnDemand.github/out/gradle/.intermediates/vendor/gm/packages/services/GMEnergyAssist/.gradle/caches/transforms-3/a37178d7e2e7d41d1eecc44b3797ff38/transformed/jetified-arrow-resilience-1.2.4.jar

Note that this is not the only conflicting files and from searching in JAR files I noticed a few duplicate files with different content, is there a resolution to this issue besides using 'pickFirst' for all the duplicate files which will probably hinder the libraries logic.

devopsmishel avatar Jan 17 '25 10:01 devopsmishel

To be honest, I'm a bit lost in what jetified-arrow-fx-coroutines-1.2.4.jar actually is. Is this transformed or bundled with some other library?

serras avatar Jan 21 '25 09:01 serras

This may be due to the fact that in 1.2.4 some functions have been moved around, and the previous ones marked as deprecated. @devopsmishel could you maybe try with 2.0.1, in which every deprecated (and potentially duplicated) function is now gone?

serras avatar Jan 25 '25 07:01 serras

@serras seems to be coming from https://developer.android.com/tools/jetifier

nomisRev avatar May 15 '25 12:05 nomisRev

@nomisRev but I'm still unsure how to reproduce this bug... :/

serras avatar May 15 '25 12:05 serras

@devopsmishel could you reproduce this bug with 2.1.1? It's just to know whether we need to investigate more, or 2.x fixed the problem. Thanks in advance!

serras avatar May 16 '25 11:05 serras

@devopsmishel hi again! do you maybe have an update on this, or a bit more information so we can reproduce?

serras avatar Aug 08 '25 12:08 serras

I’m closing this issue since we couldn’t find the cause nor got additional information for investigation

serras avatar Aug 29 '25 06:08 serras