我正在尝试将 Moxy 与 androidX 连接,但它编写了重复的类:
Duplicate class com.arellomobile.mvp.DefaultView found in modules moxy-1.5.6.jar (com.arello-mobile:moxy:1.5.6) 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.6.jar (com.arello-mobile:moxy:1.5.6) 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.6.jar (com.arello-mobile:moxy:1.5.6) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0)
Duplicate class com.arellomobile.mvp.MvpDelegate found in modules moxy-1.5.6.jar (com.arello-mobile:moxy:1.5.6) 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.6.jar (com.arello-mobile:moxy:1.5.6) 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.6.jar (com.arello-mobile:moxy:1.5.6) 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.6.jar (com.arello-mobile:moxy:1.5.6) 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.6.jar (com.arello-mobile:moxy:1.5.6) 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.6.jar (com.arello-mobile:moxy:1.5.6) 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.6.jar (com.arello-mobile:moxy:1.5.6) 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.6.jar (com.arello-mobile:moxy:1.5.6) 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.6.jar (com.arello-mobile:moxy:1.5.6) 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.6.jar (com.arello-mobile:moxy:1.5.6) 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.6.jar (com.arello-mobile:moxy:1.5.6) 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.6.jar (com.arello-mobile:moxy:1.5.6) 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.6.jar (com.arello-mobile:moxy:1.5.6) 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.6.jar (com.arello-mobile:moxy:1.5.6) 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.6.jar (com.arello-mobile:moxy:1.5.6) 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.6.jar (com.arello-mobile:moxy:1.5.6) 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.6.jar (com.arello-mobile:moxy:1.5.6) 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.6.jar (com.arello-mobile:moxy:1.5.6) 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.6.jar (com.arello-mobile:moxy:1.5.6) 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.6.jar (com.arello-mobile:moxy:1.5.6) 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.6.jar (com.arello-mobile:moxy:1.5.6) 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.6.jar (com.arello-mobile:moxy:1.5.6) 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.6.jar (com.arello-mobile:moxy:1.5.6) 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.6.jar (com.arello-mobile:moxy:1.5.6) 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.6.jar (com.arello-mobile:moxy:1.5.6) and moxy-x-1.7.0.jar (tech.schoolhelper:moxy-x:1.7.0)
Go to the documentation to learn how to Fix dependency resolution errors.
依赖项:
implementation 'com.arello-mobile:moxy:1.5.6'
implementation 'tech.schoolhelper:moxy-x-androidx:1.7.0'
implementation 'tech.schoolhelper:moxy-x-material:1.7.0'
annotationProcessor 'com.github.moxy-community:moxy-compiler:2.0.2'
应该有哪些依赖?
您正在尝试混合使用新的 moxy 编译器和过时且不受支持的自身版本,
Moxy以及为引入对androidx.使用最新的官方版本 -
androidx无需第三方分叉即可获得支持。在此处查看最新版本:https ://github.com/moxy-community/Moxy