question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Androidx duplicate dependencies

See original GitHub issue

I started AndroidX project, i am using this dependencies:

`  //implementation "com.arello-mobile:moxy:$moxy"

    implementation "com.arello-mobile:moxy-app-compat:$moxy"

    annotationProcessor "com.arello-mobile:moxy-compiler:$moxy"

    implementation 'tech.schoolhelper:moxy-x-androidx:1.7.0'`

but in build process getting this error:

Duplicate class com.arellomobile.mvp.DefaultView found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.DefaultViewState found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.InjectViewState found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.MvpAppCompatActivity found in modules jetified-moxy-app-compat-1.5.5.jar (com.arello-mobile:moxy-app-compat:1.5.5) and moxy-x-androidx-1.7.0.jar (tech.schoolhelper:moxy-x-androidx:1.7.0) Duplicate class com.arellomobile.mvp.MvpAppCompatDialogFragment found in modules jetified-moxy-app-compat-1.5.5.jar (com.arello-mobile:moxy-app-compat:1.5.5) and moxy-x-androidx-1.7.0.jar (tech.schoolhelper:moxy-x-androidx:1.7.0) Duplicate class com.arellomobile.mvp.MvpAppCompatFragment found in modules jetified-moxy-app-compat-1.5.5.jar (com.arello-mobile:moxy-app-compat:1.5.5) and moxy-x-androidx-1.7.0.jar (tech.schoolhelper:moxy-x-androidx:1.7.0) Duplicate class com.arellomobile.mvp.MvpDelegate found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.MvpFacade found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.MvpPresenter found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.MvpPresenter$Binder found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.MvpProcessor found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.MvpView found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.PresenterBinder found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.PresenterStore found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.PresentersCounter found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.RegisterMoxyReflectorPackages found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.ViewStateProvider found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.presenter.InjectPresenter found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.presenter.PresenterField found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.presenter.ProvidePresenter found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.presenter.ProvidePresenterTag found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.viewstate.MvpViewState found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.viewstate.ViewCommand found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.viewstate.ViewCommands found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.viewstate.strategy.AddToEndSingleStrategy found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.viewstate.strategy.AddToEndStrategy found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.viewstate.strategy.OneExecutionStateStrategy found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.viewstate.strategy.SingleStateStrategy found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.viewstate.strategy.SkipStrategy found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.viewstate.strategy.StateStrategy found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0) Duplicate class com.arellomobile.mvp.viewstate.strategy.StateStrategyType found in modules moxy-1.5.5.jar (com.arello-mobile:moxy:1.5.5) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0)

How to resolve this errors?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
fmaxxcommented, Sep 13, 2019

that works on my Android-x project ($versions.moxy = 1.7.0):

 implementation "tech.schoolhelper:moxy-x:$versions.moxy"
 implementation "tech.schoolhelper:moxy-x-android:$versions.moxy"
 annotationProcessor "tech.schoolhelper:moxy-x-compiler:$versions.moxy"
1reaction
bitizen248commented, Jun 27, 2019

Use should also use custom Moxy https://github.com/schoolhelper/MoxyX

This worked for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

android - gradle - library duplicates in dependencies
To find duplicate dependencies or its required dependencies, you can visualize library dependencies in tree. Execute gradle command as below.
Read more >
Reduce duplicated dependencies from your project - Medium
1) Step first replace play-services dependency with contained dependency you need (gcm, locations, analytics, etc) · 2) Remove Guava, using it ...
Read more >
How to resolve duplicate dependency problem in Android ...
In this video We will learn,How to resolve duplicate dependency problem in android studio in 2021?How to fix android studio build problem?
Read more >
Add build dependencies - Android Developers
Learn how to add build dependencies using the Gradle build system in Android Studio.
Read more >
Resolve duplicates when copying dependencies - Help/Discuss
Hello there. I found a lot of 'How to copy dependencies to a directory?' topics but they do not cover one critical issue...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found