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

Duplicate class com.google.android.play.core.common.IntentSenderForResultStarte #224

Open
cpzhang opened this issue Oct 25, 2023 · 4 comments

Comments

@cpzhang
Copy link

cpzhang commented Oct 25, 2023

Unity2021.3.31
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':launcher:checkReleaseDuplicateClasses'.

1 exception was raised by workers:
java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class com.google.android.play.core.common.IntentSenderForResultStarter found in modules jetified-core-1.10.0-runtime.jar (com.google.android.play:core:1.10.0) and jetified-core-common-2.0.0-runtime.jar (com.google.android.play:core-common:2.0.0)
Duplicate class com.google.android.play.core.common.LocalTestingException found in modules jetified-core-1.10.0-runtime.jar (com.google.android.play:core:1.10.0) and jetified-core-common-2.0.0-runtime.jar (com.google.android.play:core-common:2.0.0)
Duplicate class com.google.android.play.core.common.PlayCoreDialogWrapperActivity found in modules jetified-core-1.10.0-runtime.jar (com.google.android.play:core:1.10.0) and jetified-core-common-2.0.0-runtime.jar (com.google.android.play:core-common:2.0.0)
Duplicate class com.google.android.play.core.listener.StateUpdatedListener found in modules jetified-core-1.10.0-runtime.jar (com.google.android.play:core:1.10.0) and jetified-core-common-2.0.0-runtime.jar (com.google.android.play:core-common:2.0.0)
Duplicate class com.google.android.play.core.review.ReviewInfo found in modules jetified-core-1.10.0-runtime.jar (com.google.android.play:core:1.10.0) and jetified-review-2.0.0-runtime.jar (com.google.android.play:review:2.0.0)
Duplicate class com.google.android.play.core.review.ReviewManager found in modules jetified-core-1.10.0-runtime.jar (com.google.android.play:core:1.10.0) and jetified-review-2.0.0-runtime.jar (com.google.android.play:review:2.0.0)
Duplicate class com.google.android.play.core.review.ReviewManagerFactory found in modules jetified-core-1.10.0-runtime.jar (com.google.android.play:core:1.10.0) and jetified-review-2.0.0-runtime.jar (com.google.android.play:review:2.0.0)
Duplicate class com.google.android.play.core.review.model.ReviewErrorCode found in modules jetified-core-1.10.0-runtime.jar (com.google.android.play:core:1.10.0) and jetified-review-2.0.0-runtime.jar (com.google.android.play:review:2.0.0)
Duplicate class com.google.android.play.core.review.testing.FakeReviewManager found in modules jetified-core-1.10.0-runtime.jar (com.google.android.play:core:1.10.0) and jetified-review-2.0.0-runtime.jar (com.google.android.play:review:2.0.0)

Go to the documentation to learn how to Fix dependency resolution errors

@kocburak
Copy link

kocburak commented Jan 7, 2024

I am having the exact same issue. We are using com.google.play.review to show in app review. This requires com.google.play.core:2.0.0 . The error occured after upgrading to com.android.tools.build:gradle:4.2.0 in order to fulfill google ad manager requirement specified here.
Setup:
Unity 2021.3.33f1
Gradle 6.7.1 (different than unity default which was 6.1.1)
com.android.tools.build:gradle:4.2.0 (different than unity default which was 4.0.2)
UEDM 1.2.178
Applovin Unity 6.1.2
Google Ad Manager (Android) 22.6.0.0
com.google.play.review 2.0.0

@HassannKhan
Copy link

Facing the same issue

@Whyser
Copy link

Whyser commented Mar 26, 2024

Same issue here.

@HassannKhan
Copy link

@Whyser I got rid of the duplication class errors by using the latest version of EDM4U after someone suggested. Make a backup of your project and give it a try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants