Skip to content

已经依赖了com.google.android.play.core的项目,报Duplicate class #76

Description

@ZhangYeSong
  • What went wrong:

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
Duplicate class com.google.android.play.core.listener.StateUpdatedListener found in modules jetified-core-1.10.2-runtime (com.google.android.play:core:1.10.2) and jetified-playcorelibrary-1.4.1-hotfix01-runtime (com.iqiyi.android.qigsaw:playcorelibrary:1.4.1-hotfix01)
Duplicate class com.google.android.play.core.splitcompat.SplitCompat found in modules jetified-core-1.10.2-runtime (com.google.android.play:core:1.10.2) and jetified-playcorelibrary-1.4.1-hotfix01-runtime (com.iqiyi.android.qigsaw:playcorelibrary:1.4.1-hotfix01)
Duplicate class com.google.android.play.core.splitcompat.SplitCompatApplication found in modules jetified-core-1.10.2-runtime (com.google.android.play:core:1.10.2) and jetified-playcorelibrary-1.4.1-hotfix01-runtime (com.iqiyi.android.qigsaw:playcorelibrary:1.4.1-hotfix01)
Duplicate class com.google.android.play.core.splitinstall.SplitInstallException found in modules jetified-core-1.10.2-runtime (com.google.android.play:core:1.10.2) and jetified-playcorelibrary-1.4.1-hotfix01-runtime (com.iqiyi.android.qigsaw:playcorelibrary:1.4.1-hotfix01)
Duplicate class com.google.android.play.core.splitinstall.SplitInstallHelper found in modules jetified-core-1.10.2-runtime (com.google.android.play:core:1.10.2) and jetified-playcorelibrary-1.4.1-hotfix01-runtime (com.iqiyi.android.qigsaw:playcorelibrary:1.4.1-hotfix01)
Duplicate class com.google.android.play.core.splitinstall.SplitInstallManager found in modules jetified-core-1.10.2-runtime (com.google.android.play:core:1.10.2) and jetified-playcorelibrary-1.4.1-hotfix01-runtime (com.iqiyi.android.qigsaw:playcorelibrary:1.4.1-hotfix01)
Duplicate class com.google.android.play.core.splitinstall.SplitInstallManagerFactory found in modules jetified-core-1.10.2-runtime (com.google.android.play:core:1.10.2) and jetified-playcorelibrary-1.4.1-hotfix01-runtime (com.iqiyi.android.qigsaw:playcorelibrary:1.4.1-hotfix01)
Duplicate class com.google.android.play.core.splitinstall.SplitInstallRequest found in modules jetified-core-1.10.2-runtime (com.google.android.play:core:1.10.2) and jetified-playcorelibrary-1.4.1-hotfix01-runtime (com.iqiyi.android.qigsaw:playcorelibrary:1.4.1-hotfix01)
Duplicate class com.google.android.play.core.splitinstall.SplitInstallRequest$Builder found in modules jetified-core-1.10.2-runtime (com.google.android.play:core:1.10.2) and jetified-playcorelibrary-1.4.1-hotfix01-runtime (com.iqiyi.android.qigsaw:playcorelibrary:1.4.1-hotfix01)
Duplicate class com.google.android.play.core.splitinstall.SplitInstallSessionState found in modules jetified-core-1.10.2-runtime (com.google.android.play:core:1.10.2) and jetified-playcorelibrary-1.4.1-hotfix01-runtime (com.iqiyi.android.qigsaw:playcorelibrary:1.4.1-hotfix01)
Duplicate class com.google.android.play.core.splitinstall.SplitInstallStateUpdatedListener found in modules jetified-core-1.10.2-runtime (com.google.android.play:core:1.10.2) and jetified-playcorelibrary-1.4.1-hotfix01-runtime (com.iqiyi.android.qigsaw:playcorelibrary:1.4.1-hotfix01)
Duplicate class com.google.android.play.core.splitinstall.model.SplitInstallErrorCode found in modules jetified-core-1.10.2-runtime (com.google.android.play:core:1.10.2) and jetified-playcorelibrary-1.4.1-hotfix01-runtime (com.iqiyi.android.qigsaw:playcorelibrary:1.4.1-hotfix01)
Duplicate class com.google.android.play.core.splitinstall.model.SplitInstallSessionStatus found in modules jetified-core-1.10.2-runtime (com.google.android.play:core:1.10.2) and jetified-playcorelibrary-1.4.1-hotfix01-runtime (com.iqiyi.android.qigsaw:playcorelibrary:1.4.1-hotfix01)
Duplicate class com.google.android.play.core.tasks.OnCompleteListener found in modules jetified-core-1.10.2-runtime (com.google.android.play:core:1.10.2) and jetified-playcorelibrary-1.4.1-hotfix01-runtime (com.iqiyi.android.qigsaw:playcorelibrary:1.4.1-hotfix01)
Duplicate class com.google.android.play.core.tasks.OnFailureListener found in modules jetified-core-1.10.2-runtime (com.google.android.play:core:1.10.2) and jetified-playcorelibrary-1.4.1-hotfix01-runtime (com.iqiyi.android.qigsaw:playcorelibrary:1.4.1-hotfix01)
Duplicate class com.google.android.play.core.tasks.OnSuccessListener found in modules jetified-core-1.10.2-runtime (com.google.android.play:core:1.10.2) and jetified-playcorelibrary-1.4.1-hotfix01-runtime (com.iqiyi.android.qigsaw:playcorelibrary:1.4.1-hotfix01)
Duplicate class com.google.android.play.core.tasks.RuntimeExecutionException found in modules jetified-core-1.10.2-runtime (com.google.android.play:core:1.10.2) and jetified-playcorelibrary-1.4.1-hotfix01-runtime (com.iqiyi.android.qigsaw:playcorelibrary:1.4.1-hotfix01)
Duplicate class com.google.android.play.core.tasks.Task found in modules jetified-core-1.10.2-runtime (com.google.android.play:core:1.10.2) and jetified-playcorelibrary-1.4.1-hotfix01-runtime (com.iqiyi.android.qigsaw:playcorelibrary:1.4.1-hotfix01)
Duplicate class com.google.android.play.core.tasks.TaskExecutors found in modules jetified-core-1.10.2-runtime (com.google.android.play:core:1.10.2) and jetified-playcorelibrary-1.4.1-hotfix01-runtime (com.iqiyi.android.qigsaw:playcorelibrary:1.4.1-hotfix01)
Duplicate class com.google.android.play.core.tasks.Tasks found in modules jetified-core-1.10.2-runtime (com.google.android.play:core:1.10.2) and jetified-playcorelibrary-1.4.1-hotfix01-runtime (com.iqiyi.android.qigsaw:playcorelibrary:1.4.1-hotfix01)

 Go to the documentation to learn how to <a href="d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>.
  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

项目有依赖com.google.android.play:core:1.10.2,这种情况如何适配?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions