N
N
newvasyuki2021-03-21 10:42:43
gradle
newvasyuki, 2021-03-21 10:42:43

Duplicate class crashes when building, how to fix it?

I'm new to cordov and mobile development, the following error occurs during build (dependency conflict), how to fix it?


> Task :app:checkDebugDuplicateClasses FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> 1 exception was raised by workers:
java.lang.RuntimeException: Duplicate class com.google.android.gms.internal.measurement.zzlj found in modules jetified-play-services-measurement-base-18.0.0-runtime.jar ( com.google.android.gms:play-services-measurement-base:18.0.0) and jetified-play-services-measurement-impl-17.5.0-runtime.jar (com.google.android.gms:play-services -measurement-impl:17.5.0)
Duplicate class com.google.android.gms.internal.measurement.zzll found in modules jetified-play-services-measurement-base-18.0.0-runtime.jar (com.google.android.gms:play-services-measurement- base:18.0.0) and jetified-play-services-measurement-impl-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.5.0)
Duplicate class com.google jetified-play-services-measurement-base-18.0.0-runtime.jar (com.google.android.gms:play-services-measurement-base:18.0.0 ) and jetified-play-services-measurement-impl-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.5.0)
Duplicate class com.google.android.gms.internal.measurement.zzln found in modules jetified-play-services-measurement-base-18.0.0-runtime.jar (com.google.android.gms:play-services-measurement- base:18.0.0) and jetified-play-services-measurement-impl-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.5.0)
Duplicate class com.google jetified-play-services-measurement-base-18.0.0-runtime.jar (com.google.android.gms:play-services-measurement-base:18.0.0 ) and jetified-play-services-measurement-impl-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.5.0)
duplicate class com.google.android.gms.internal.measurement.zzm found in modules jetified-play-services-measurement-base-18.0.0-runtime.jar (com.google.android.gms:play-services-measurement- base:18.0.0) and jetified-play-services-measurement-impl-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.5.0)
Duplicate class com.google jetified-play-services-measurement-base-18.0.0-runtime.jar (com.google.android.gms:play-services-measurement-base:18.0.0 ) and jetified-play-services-measurement-impl-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.5.0)
Duplicate class com.google.android.gms.internal.measurement.zzo found in modules jetified-play-services-measurement-base-18.0.0-runtime.jar (com.google.android.gms:play-services-measurement- base:18.0.0) and jetified-play-services-measurement-impl-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.5.0)
Duplicate class com.google jetified-play-services-measurement-base-18.0.0-runtime.jar (com.google.android.gms:play-services-measurement-base:18.0.0 ) and jetified-play-services-measurement-impl-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.5.0)
Duplicate class com.google.android.gms.measurement.internal.zzgs found in modules jetified-play-services-measurement-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement:17.5. 0) and jetified-play-services-measurement-base-18.0.0-runtime.jar (com.google.android.gms:play-services-measurement-base:18.0.0)
Duplicate class com.google.android.gms .measurement.internal.zzgu found in modules jetified-play-services-measurement-base-18.0.0-runtime.jar (com.google.android.gms:play-services-measurement-base:18.0.0) and jetified- play-services-measurement-impl-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.5.0)
Duplicate class com.google.android.gms.measurement.internal.zzgv found in modules jetified-play-services-measurement-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement:17.5. 0) and jetified-play-services-measurement-base-18.0.0-runtime.jar (com.google.android.gms:play-services-measurement-base:18.0.0)
Duplicate class com.google.android.gms .measurement.internal.zzgw found in modules jetified-play-services-measurement-base-18.0.0-runtime.jar (com.google.android.gms:play-services-measurement-base:18.0.0) and jetified- play-services-measurement-impl-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.5.0)
Duplicate class com.google.android.gms.measurement.internal.zzgx found in modules jetified-play-services-measurement-base-18.0.0-runtime.jar (com.google.android.gms:play-services-measurement- base:18.0.0) and jetified-play-services-measurement-impl-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.5.0)
Duplicate class com.google jetified-play-services-measurement-base-18.0.0-runtime.jar (com.google.android.gms:play-services-measurement-base:18.0.0 ) and jetified-play-services-measurement-impl-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.5.0)
duplicate class com.google.android.gms.measurement.internal.zzig found in modules jetified-play-services-measurement-base-18.0.0-runtime.jar (com.google.android.gms:play-services-measurement- base:18.0.0) and jetified-play-services-measurement-impl-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.5.0)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question