Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Usable with work-runtime-2.8.0? #224

Closed
fobos531 opened this issue Sep 13, 2023 · 1 comment
Closed

[Android] Usable with work-runtime-2.8.0? #224

fobos531 opened this issue Sep 13, 2023 · 1 comment
Labels
question Further information is requested

Comments

@fobos531
Copy link
Contributor

Describe your question

Hello, by inspecting the dependencies of my app, I have determined that Square's Android Reader SDK uses work-runtime 2.7.0. However, I am using another dependencies that depend on work-runtime 2.8.0. Because of that, I'm getting duplicate class conflicts:

  > Duplicate class androidx.work.OneTimeWorkRequestKt found in modules work-runtime-2.8.0-runtime (androidx.work:work-runtime:2.8.0) and work-runtime-ktx-2.7.0-runtime (androidx.work:work-runtime-ktx:2.7.0)

Is it safe to run the Square SDK with work-runtime-2.8.0? What solutions do you offer in this situation?

@fobos531 fobos531 added the question Further information is requested label Sep 13, 2023
@bwisem
Copy link

bwisem commented Oct 18, 2023

As of right now Square's Reader SDK hasn't updated to use work-runtime 2.8.0, so as a workaround you can forcing the gradle dependency to use either 2.7.0 or 2.8.0.

configurations.all {
  resolutionStrategy.eachDependency { details ->
    if (details.requested.group == 'androidx.work.work-runtime') {
      details.useVersion "2.7.0"
    }
  }
}

@bwisem bwisem closed this as completed Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants