react-native-android-inapp-updates
react-native-android-inapp-updates copied to clipboard
Build failed when combined with plugin `react-native-in-app-review` with message "Duplicate class com.google.android.play.core.common.IntentSenderForResultStarter"
Environment
OS: Windows Platform: Android React Native Version: 0.70.9
Step to reproduce
- Install both plugin into RN project:
react-native-android-inapp-updatesandreact-native-in-app-review - Run the project on Android with
yarn android - Build fails with error message "Duplicate class com.google.android.play.core.common.IntentSenderForResultStarter"
Build Error Message
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Che
ckDuplicatesRunnable
> Duplicate class com.google.android.play.core.common.IntentSenderForResultSt
arter found in modules jetified-core-1.10.0-runtime (com.google.android.play:cor
e:1.10.0) and jetified-core-common-2.0.2-runtime (com.google.android.play:core-c
ommon:2.0.2)
Duplicate class com.google.android.play.core.common.LocalTestingException f
ound in modules jetified-core-1.10.0-runtime (com.google.android.play:core:1.10.
0) and jetified-core-common-2.0.2-runtime (com.google.android.play:core-common:2
.0.2)
Duplicate class com.google.android.play.core.common.PlayCoreDialogWrapperAc
tivity found in modules jetified-core-1.10.0-runtime (com.google.android.play:co
re:1.10.0) and jetified-core-common-2.0.2-runtime (com.google.android.play:core-
common:2.0.2)
Duplicate class com.google.android.play.core.listener.StateUpdatedListener
found in modules jetified-core-1.10.0-runtime (com.google.android.play:core:1.10
.0) and jetified-core-common-2.0.2-runtime (com.google.android.play:core-common:
5.0.2)
Duplicate class com.google.android.play.core.review.ReviewInfo found in mod
ules jetified-core-1.10.0-runtime (com.google.android.play:core:1.10.0) and jeti
fied-review-2.0.1-runtime (com.google.android.play:review:2.0.1)
Duplicate class com.google.android.play.core.review.ReviewManager found in
modules jetified-core-1.10.0-runtime (com.google.android.play:core:1.10.0) and j
etified-review-2.0.1-runtime (com.google.android.play:review:2.0.1)
Duplicate class com.google.android.play.core.review.ReviewManagerFactory fo
und in modules jetified-core-1.10.0-runtime (com.google.android.play:core:1.10.0
) and jetified-review-2.0.1-runtime (com.google.android.play:review:2.0.1)
Duplicate class com.google.android.play.core.review.model.ReviewErrorCode f
ound in modules jetified-core-1.10.0-runtime (com.google.android.play:core:1.10.
0) and jetified-review-2.0.1-runtime (com.google.android.play:review:2.0.1)
Duplicate class com.google.android.play.core.review.testing.FakeReviewManag
er found in modules jetified-core-1.10.0-runtime (com.google.android.play:core:1
.10.0) and jetified-review-2.0.1-runtime (com.google.android.play:review:2.0.1)
Go to the documentation to learn how to <a href="d.android.com/r/tools/clas
spath-sync-errors">Fix dependency resolution errors</a>.