after adding com.google.mlkit:face-detection:16.0.7 I have below log error
what should I do?
Duplicate class com.google.firebase.components.Component found in modules jetified-firebase-common-16.0.3-runtime (com.google.firebase:firebase-common:16.0.3) and jetified-firebase-components-16.0.0-runtime (com.google.firebase:firebase-components:16.0.0)
Duplicate class com.google.firebase.components.Component$1 found in modules jetified-firebase-common-16.0.3-runtime (com.google.firebase:firebase-common:16.0.3) and jetified-firebase-components-16.0.0-runtime (com.google.firebase:firebase-components:16.0.0)
Duplicate class com.google.firebase.components.Component$Builder found in modules jetified-firebase-common-16.0.3-runtime (com.google.firebase:firebase-common:16.0.3) and jetified-firebase-components-16.0.0-runtime (com.google.firebase:firebase-components:16.0.0)
Duplicate class com.google.firebase.components.ComponentContainer found in modules jetified-firebase-common-16.0.3-runtime (com.google.firebase:firebase-common:16.0.3) and jetified-firebase-components-16.0.0-runtime (com.google.firebase:firebase-components:16.0.0)
Duplicate class com.google.firebase.components.ComponentFactory found in modules jetified-firebase-common-16.0.3-runtime (com.google.firebase:firebase-common:16.0.3) and jetified-firebase-components-16.0.0-runtime (com.google.firebase:firebase-components:16.0.0)
Duplicate class com.google.firebase.components.ComponentRegistrar found in modules jetified-firebase-common-16.0.3-runtime (com.google.firebase:firebase-common:16.0.3) and jetified-firebase-components-16.0.0-runtime (com.google.firebase:firebase-components:16.0.0)
Duplicate class com.google.firebase.components.Dependency found in modules jetified-firebase-common-16.0.3-runtime (com.google.firebase:firebase-common:16.0.3) and jetified-firebase-components-16.0.0-runtime (com.google.firebase:firebase-components:16.0.0)
Duplicate class com.google.firebase.components.DependencyCycleException found in modules jetified-firebase-common-16.0.3-runtime (com.google.firebase:firebase-common:16.0.3) and jetified-firebase-components-16.0.0-runtime (com.google.firebase:firebase-components:16.0.0)
Duplicate class com.google.firebase.components.DependencyException found in modules jetified-firebase-common-16.0.3-runtime (com.google.firebase:firebase-common:16.0.3) and jetified-firebase-components-16.0.0-runtime (com.google.firebase:firebase-components:16.0.0)
Duplicate class com.google.firebase.components.MissingDependencyException found in modules jetified-firebase-common-16.0.3-runtime (com.google.firebase:firebase-common:16.0.3) and jetified-firebase-components-16.0.0-runtime (com.google.firebase:firebase-components:16.0.0)
Duplicate class com.google.firebase.events.Event found in modules jetified-firebase-common-16.0.3-runtime (com.google.firebase:firebase-common:16.0.3) and jetified-firebase-components-16.0.0-runtime (com.google.firebase:firebase-components:16.0.0)
Duplicate class com.google.firebase.events.EventHandler found in modules jetified-firebase-common-16.0.3-runtime (com.google.firebase:firebase-common:16.0.3) and jetified-firebase-components-16.0.0-runtime (com.google.firebase:firebase-components:16.0.0)
Duplicate class com.google.firebase.events.Publisher found in modules jetified-firebase-common-16.0.3-runtime (com.google.firebase:firebase-common:16.0.3) and jetified-firebase-components-16.0.0-runtime (com.google.firebase:firebase-components:16.0.0)
Duplicate class com.google.firebase.events.Subscriber found in modules jetified-firebase-common-16.0.3-runtime (com.google.firebase:firebase-common:16.0.3) and jetified-firebase-components-16.0.0-runtime (com.google.firebase:firebase-components:16.0.0)
Duplicate class com.google.firebase.inject.Provider found in modules jetified-firebase-common-16.0.3-runtime (com.google.firebase:firebase-common:16.0.3) and jetified-firebase-components-16.0.0-runtime (com.google.firebase:firebase-components:16.0.0)
Go to the documentation to learn how to Fix dependency resolution errors.
you may have an existing firebase dependency that pulls in com.google.firebase:firebase-common:16.0.3 which is not compatible with the mlkit APIs. You can resolve this by using the latest firebase BOM which specifies the latest versions for all firebase SDKs:
// Import the BoM for the Firebase platform
implementation platform('com.google.firebase:firebase-bom:28.0.1')
// OR, just explicitly pull in the latest firebase-common dependency in your project:
implementation 'com.google.firebase.firebase-common-20.0.0'
Related
Duplicate class javax.annotation.Generated found in modules jetified-javax.annotation-api-1.3.2.jar (javax.annotation:javax.annotation-api:1.3.2) and jetified-jsr250-api-1.0.jar (javax.annotation:jsr250-api:1.0)
Duplicate class javax.annotation.PostConstruct found in modules jetified-javax.annotation-api-1.3.2.jar (javax.annotation:javax.annotation-api:1.3.2) and jetified-jsr250-api-1.0.jar (javax.annotation:jsr250-api:1.0)
Duplicate class javax.annotation.PreDestroy found in modules jetified-javax.annotation-api-1.3.2.jar (javax.annotation:javax.annotation-api:1.3.2) and jetified-jsr250-api-1.0.jar (javax.annotation:jsr250-api:1.0)
Duplicate class javax.annotation.Resource found in modules jetified-javax.annotation-api-1.3.2.jar (javax.annotation:javax.annotation-api:1.3.2) and jetified-jsr250-api-1.0.jar (javax.annotation:jsr250-api:1.0)
Duplicate class javax.annotation.Resource$AuthenticationType found in modules jetified-javax.annotation-api-1.3.2.jar (javax.annotation:javax.annotation-api:1.3.2) and jetified-jsr250-api-1.0.jar (javax.annotation:jsr250-api:1.0)
Duplicate class javax.annotation.Resources found in modules jetified-javax.annotation-api-1.3.2.jar (javax.annotation:javax.annotation-api:1.3.2) and jetified-jsr250-api-1.0.jar (javax.annotation:jsr250-api:1.0)
Duplicate class javax.annotation.security.DeclareRoles found in modules jetified-javax.annotation-api-1.3.2.jar (javax.annotation:javax.annotation-api:1.3.2) and jetified-jsr250-api-1.0.jar (javax.annotation:jsr250-api:1.0)
Duplicate class javax.annotation.security.DenyAll found in modules jetified-javax.annotation-api-1.3.2.jar (javax.annotation:javax.annotation-api:1.3.2) and jetified-jsr250-api-1.0.jar (javax.annotation:jsr250-api:1.0)
Duplicate class javax.annotation.security.PermitAll found in modules jetified-javax.annotation-api-1.3.2.jar (javax.annotation:javax.annotation-api:1.3.2) and jetified-jsr250-api-1.0.jar (javax.annotation:jsr250-api:1.0)
Duplicate class javax.annotation.security.RolesAllowed found in modules jetified-javax.annotation-api-1.3.2.jar (javax.annotation:javax.annotation-api:1.3.2) and jetified-jsr250-api-1.0.jar (javax.annotation:jsr250-api:1.0)
Duplicate class javax.annotation.security.RunAs found in modules jetified-javax.annotation-api-1.3.2.jar (javax.annotation:javax.annotation-api:1.3.2) and jetified-jsr250-api-1.0.jar (javax.annotation:jsr250-api:1.0)
//Libraries
// implementation platform('com.google.cloud:libraries-bom:20.8.0')
// compile ('com.google.cloud:google-cloud-speech')
when i am trying to add dependency implementation 'com.google.android.gms:play-services-vision:11.8.0'
on my android studio project
it shows a list of errors
Duplicate class com.google.android.gms.common.api.internal.zza found in modules jetified-play-services-base-11.8.0-runtime.jar (com.google.android.gms:play-services-base:11.8.0) and jetified-play-services-basement-17.6.0-runtime.jar (com.google.android.gms:play-services-basement:17.6.0)
Duplicate class com.google.android.gms.common.api.internal.zzb found in modules jetified-play-services-base-11.8.0-runtime.jar (com.google.android.gms:play-services-base:11.8.0) and jetified-play-services-basement-17.6.0-runtime.jar (com.google.android.gms:play-services-basement:17.6.0)
Duplicate class com.google.android.gms.common.api.internal.zzc found in modules jetified-play-services-base-11.8.0-runtime.jar (com.google.android.gms:play-services-base:11.8.0) and jetified-play-services-basement-17.6.0-runtime.jar (com.google.android.gms:play-services-basement:17.6.0)
Duplicate class com.google.android.gms.common.api.internal.zzd found in modules jetified-play-services-base-11.8.0-runtime.jar (com.google.android.gms:play-services-base:11.8.0) and jetified-play-services-basement-17.6.0-runtime.jar (com.google.android.gms:play-services-basement:17.6.0)
Duplicate class com.google.android.gms.common.api.zza found in modules jetified-play-services-base-11.8.0-runtime.jar (com.google.android.gms:play-services-base:11.8.0) and jetified-play-services-basement-17.6.0-runtime.jar (com.google.android.gms:play-services-basement:17.6.0)
Duplicate class com.google.android.gms.common.api.zzb found in modules jetified-play-services-base-11.8.0-runtime.jar (com.google.android.gms:play-services-base:11.8.0) and jetified-play-services-basement-17.6.0-runtime.jar (com.google.android.gms:play-services-basement:17.6.0)
Duplicate class com.google.android.gms.common.internal.zzab found in modules jetified-play-services-base-11.8.0-runtime.jar (com.google.android.gms:play-services-base:11.8.0) and jetified-play-services-basement-17.6.0-runtime.jar (com.google.android.gms:play-services-basement:17.6.0)
Duplicate class com.google.android.gms.common.internal.zzac found in modules jetified-play-services-base-11.8.0-runtime.jar (com.google.android.gms:play-services-base:11.8.0) and jetified-play-services-basement-17.6.0-runtime.jar (com.google.android.gms:play-services-basement:17.6.0)
Duplicate class com.google.android.gms.common.internal.zzad found in modules jetified-play-services-base-11.8.0-runtime.jar (com.google.android.gms:play-services-base:11.8.0) and jetified-play-services-basement-17.6.0-runtime.jar (com.google.android.gms:play-services-basement:17.6.0)
Duplicate class com.google.android.gms.common.internal.zzae found in modules jetified-play-services-base-11.8.0-runtime.jar (com.google.android.gms:play-services-base:11.8.0) and jetified-play-services-basement-17.6.0-runtime.jar (com.google.android.gms:play-services-basement:17.6.0)
Duplicate class com.google.android.gms.common.internal.zzaf found in modules jetified-play-services-base-11.8.0-runtime.jar (com.google.android.gms:play-services-base:11.8.0) and jetified-play-services-basement-17.6.0-runtime.jar (com.google.android.gms:play-services-basement:17.6.0)
Duplicate class com.google.android.gms.common.internal.zzb found in modules jetified-play-services-base-11.8.0-runtime.jar (com.google.android.gms:play-services-base:11.8.0) and jetified-play-services-basement-17.6.0-runtime.jar (com.google.android.gms:play-services-basement:17.6.0)
Duplicate class com.google.android.gms.common.internal.zzr found in modules jetified-play-services-base-11.8.0-runtime.jar (com.google.android.gms:play-services-base:11.8.0) and jetified-play-services-basement-17.6.0-runtime.jar (com.google.android.gms:play-services-basement:17.6.0)
Duplicate class com.google.android.gms.common.internal.zzs found in modules jetified-play-services-base-11.8.0-runtime.jar (com.google.android.gms:play-services-base:11.8.0) and jetified-play-services-basement-17.6.0-runtime.jar (com.google.android.gms:play-services-basement:17.6.0)
Duplicate class com.google.android.gms.common.internal.zzt found in modules jetified-play-services-base-11.8.0-runtime.jar (com.google.android.gms:play-services-base:11.8.0) and jetified-play-services-basement-17.6.0-runtime.jar (com.google.android.gms:play-services-basement:17.6.0)
Duplicate class com.google.android.gms.common.internal.zzu found in modules jetified-play-services-base-11.8.0-runtime.jar (com.google.android.gms:play-services-base:11.8.0) and jetified-play-services-basement-17.6.0-runtime.jar (com.google.android.gms:play-services-basement:17.6.0)
Duplicate class com.google.android.gms.common.internal.zzv found in modules jetified-play-services-base-11.8.0-runtime.jar (com.google.android.gms:play-services-base:11.8.0) and jetified-play-services-basement-17.6.0-runtime.jar (com.google.android.gms:play-services-basement:17.6.0)
Duplicate class com.google.android.gms.common.internal.zzw found in modules jetified-play-services-base-11.8.0-runtime.jar (com.google.android.gms:play-services-base:11.8.0) and jetified-play-services-basement-17.6.0-runtime.jar (com.google.android.gms:play-services-basement:17.6.0)
Duplicate class com.google.android.gms.common.internal.zzx found in modules jetified-play-services-base-11.8.0-runtime.jar (com.google.android.gms:play-services-base:11.8.0) and jetified-play-services-basement-17.6.0-runtime.jar (com.google.android.gms:play-services-basement:17.6.0)
Duplicate class com.google.android.gms.common.internal.zzy found in modules jetified-play-services-base-11.8.0-runtime.jar (com.google.android.gms:play-services-base:11.8.0) and jetified-play-services-basement-17.6.0-runtime.jar (com.google.android.gms:play-services-basement:17.6.0)
Duplicate class com.google.android.gms.common.zze found in modules jetified-play-services-base-11.8.0-runtime.jar (com.google.android.gms:play-services-base:11.8.0) and jetified-play-services-basement-17.6.0-runtime.jar (com.google.android.gms:play-services-basement:17.6.0)
Duplicate class com.google.android.gms.dynamic.zza found in modules jetified-play-services-base-11.8.0-runtime.jar (com.google.android.gms:play-services-base:11.8.0) and jetified-play-services-basement-17.6.0-runtime.jar (com.google.android.gms:play-services-basement:17.6.0)
Duplicate class com.google.android.gms.dynamic.zzb found in modules jetified-play-services-base-11.8.0-runtime.jar (com.google.android.gms:play-services-base:11.8.0) and jetified-play-services-basement-17.6.0-runtime.jar (com.google.android.gms:play-services-basement:17.6.0)
Go to the documentation to learn how to Fix dependency resolution errors.
how can I fix it
and my dependencies here
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'com.google.android.gms:play-services-vision:11.8.0'
implementation 'com.google.android.gms:play-services-ads:20.1.0'
}
If you want to implement Ads in your project, It will be done with;
implementation 'com.google.android.gms:play-services-ads:20.1.0'
Just remove this;
implementation 'com.google.android.gms:play-services-vision:11.8.0'
I'm working on incorporating some beacon technology SDKs in our React Native app, and I'm running into some build issues as I do so. They seem unrelated, so I'm confused as to what brought these issues up.
Below is the error spit out from Android Studio during an attempted build and install on a real device:
Duplicate class com.google.android.gms.internal.vision.zzbl found in modules jetified-play-services-vision-common-19.1.0-runtime.jar (com.google.android.gms:play-services-vision-common:19.1.0) and jetified-play-services-vision-face-contour-internal-16.0.0-runtime.jar (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0) Duplicate class com.google.android.gms.internal.vision.zzbn found in modules jetified-play-services-vision-common-19.1.0-runtime.jar (com.google.android.gms:play-services-vision-common:19.1.0) and jetified-play-services-vision-face-contour-internal-16.0.0-runtime.jar (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0) Duplicate class com.google.android.gms.internal.vision.zzbo found in modules jetified-play-services-vision-common-19.1.0-runtime.jar (com.google.android.gms:play-services-vision-common:19.1.0) and jetified-play-services-vision-face-contour-internal-16.0.0-runtime.jar (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0) Duplicate class com.google.android.gms.internal.vision.zzbp found in modules jetified-play-services-vision-common-19.1.0-runtime.jar (com.google.android.gms:play-services-vision-common:19.1.0) and jetified-play-services-vision-face-contour-internal-16.0.0-runtime.jar (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0) Duplicate class com.google.android.gms.internal.vision.zzbr found in modules jetified-play-services-vision-common-19.1.0-runtime.jar (com.google.android.gms:play-services-vision-common:19.1.0) and jetified-play-services-vision-face-contour-internal-16.0.0-runtime.jar (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0) Duplicate class com.google.android.gms.internal.vision.zze found in modules jetified-play-services-vision-20.0.0-runtime.jar (com.google.android.gms:play-services-vision:20.0.0) and jetified-play-services-vision-common-19.1.0-runtime.jar (com.google.android.gms:play-services-vision-common:19.1.0) Duplicate class com.google.android.gms.internal.vision.zzf found in modules jetified-play-services-vision-20.0.0-runtime.jar (com.google.android.gms:play-services-vision:20.0.0) and jetified-play-services-vision-common-19.1.0-runtime.jar (com.google.android.gms:play-services-vision-common:19.1.0) Duplicate class com.google.android.gms.internal.vision.zzg found in modules jetified-play-services-vision-20.0.0-runtime.jar (com.google.android.gms:play-services-vision:20.0.0) and jetified-play-services-vision-common-19.1.0-runtime.jar (com.google.android.gms:play-services-vision-common:19.1.0) Duplicate class com.google.android.gms.internal.vision.zzh found in modules jetified-play-services-vision-20.0.0-runtime.jar (com.google.android.gms:play-services-vision:20.0.0) and jetified-play-services-vision-common-19.1.0-runtime.jar (com.google.android.gms:play-services-vision-common:19.1.0) Duplicate class com.google.android.gms.internal.vision.zzi found in modules jetified-play-services-vision-20.0.0-runtime.jar (com.google.android.gms:play-services-vision:20.0.0) and jetified-play-services-vision-common-19.1.0-runtime.jar (com.google.android.gms:play-services-vision-common:19.1.0) Duplicate class com.google.android.gms.internal.vision.zzkf found in modules jetified-play-services-vision-common-19.1.0-runtime.jar (com.google.android.gms:play-services-vision-common:19.1.0) and jetified-play-services-vision-face-contour-internal-16.0.0-runtime.jar (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0) Duplicate class com.google.android.gms.internal.vision.zzkh found in modules jetified-play-services-vision-common-19.1.0-runtime.jar (com.google.android.gms:play-services-vision-common:19.1.0) and jetified-play-services-vision-face-contour-internal-16.0.0-runtime.jar (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0) Duplicate class com.google.android.gms.internal.vision.zzki found in modules jetified-play-services-vision-common-19.1.0-runtime.jar (com.google.android.gms:play-services-vision-common:19.1.0) and jetified-play-services-vision-face-contour-internal-16.0.0-runtime.jar (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0) Duplicate class com.google.android.gms.internal.vision.zzkj found in modules jetified-play-services-vision-common-19.1.0-runtime.jar (com.google.android.gms:play-services-vision-common:19.1.0) and jetified-play-services-vision-face-contour-internal-16.0.0-runtime.jar (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0) Duplicate class com.google.android.gms.internal.vision.zzkl found in modules jetified-play-services-vision-common-19.1.0-runtime.jar (com.google.android.gms:play-services-vision-common:19.1.0) and jetified-play-services-vision-face-contour-internal-16.0.0-runtime.jar (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0) Duplicate class com.google.android.gms.internal.vision.zzv found in modules jetified-play-services-vision-20.0.0-runtime.jar (com.google.android.gms:play-services-vision:20.0.0) and jetified-play-services-vision-common-19.1.0-runtime.jar (com.google.android.gms:play-services-vision-common:19.1.0) Duplicate class com.google.android.gms.internal.vision.zzw found in modules jetified-play-services-vision-20.0.0-runtime.jar (com.google.android.gms:play-services-vision:20.0.0) and jetified-play-services-vision-common-19.1.0-runtime.jar (com.google.android.gms:play-services-vision-common:19.1.0)
I've seen this fix: How to solve this error : Duplicate class com.google.android.gms.internal.vision.zzw found in modules but this did not resolve my issues.
If needed, I can include my build.gradle versions but I thought this block of text was already too massive.
For my image processing project on android, I need to use the two libraries:
android_face_detection
EPassportNFCReader
I want to combine these to libraries in a project to make a library and use them in my real project. There is an inconsistency in the dependencies. I've figured out that the following libraries don't work together since one of them is the migrated version of the other.
com.google.firebase:firebase-ml-vision:24.1.0 //used by 1.
com.google.android.gms:play-services-mlkit-text-recognition:16.1.2 //used by 2.
I've figured out that Google migrated the firebase-ml-vision to com.google.android.gms. I tried to migrate the first project but figured out that the migration is not easy for the first library.
Is there a way to use those together?
The duplicate errors I've got if I put the libraries together:
Duplicate class com.google.android.gms.internal.vision.zzbl found in modules play-services-vision-common-19.1.3-runtime (com.google.android.gms:play-services-vision-common:19.1.3) and play-services-vision-face-contour-internal-16.0.0-runtime (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0)
Duplicate class com.google.android.gms.internal.vision.zzbn found in modules play-services-vision-common-19.1.3-runtime (com.google.android.gms:play-services-vision-common:19.1.3) and play-services-vision-face-contour-internal-16.0.0-runtime (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0)
Duplicate class com.google.android.gms.internal.vision.zzbo found in modules play-services-vision-common-19.1.3-runtime (com.google.android.gms:play-services-vision-common:19.1.3) and play-services-vision-face-contour-internal-16.0.0-runtime (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0)
Duplicate class com.google.android.gms.internal.vision.zzbp found in modules play-services-vision-common-19.1.3-runtime (com.google.android.gms:play-services-vision-common:19.1.3) and play-services-vision-face-contour-internal-16.0.0-runtime (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0)
Duplicate class com.google.android.gms.internal.vision.zzbq found in modules play-services-vision-common-19.1.3-runtime (com.google.android.gms:play-services-vision-common:19.1.3) and play-services-vision-face-contour-internal-16.0.0-runtime (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0)
Duplicate class com.google.android.gms.internal.vision.zzbr found in modules play-services-vision-common-19.1.3-runtime (com.google.android.gms:play-services-vision-common:19.1.3) and play-services-vision-face-contour-internal-16.0.0-runtime (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0)
Duplicate class com.google.android.gms.internal.vision.zzbs found in modules play-services-vision-common-19.1.3-runtime (com.google.android.gms:play-services-vision-common:19.1.3) and play-services-vision-face-contour-internal-16.0.0-runtime (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0)
Duplicate class com.google.android.gms.internal.vision.zzbt found in modules play-services-vision-common-19.1.3-runtime (com.google.android.gms:play-services-vision-common:19.1.3) and play-services-vision-face-contour-internal-16.0.0-runtime (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0)
Duplicate class com.google.android.gms.internal.vision.zzbx found in modules play-services-vision-common-19.1.3-runtime (com.google.android.gms:play-services-vision-common:19.1.3) and play-services-vision-face-contour-internal-16.0.0-runtime (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0)
Duplicate class com.google.android.gms.internal.vision.zzkf found in modules play-services-vision-common-19.1.3-runtime (com.google.android.gms:play-services-vision-common:19.1.3) and play-services-vision-face-contour-internal-16.0.0-runtime (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0)
Duplicate class com.google.android.gms.internal.vision.zzkh found in modules play-services-vision-common-19.1.3-runtime (com.google.android.gms:play-services-vision-common:19.1.3) and play-services-vision-face-contour-internal-16.0.0-runtime (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0)
Duplicate class com.google.android.gms.internal.vision.zzki found in modules play-services-vision-common-19.1.3-runtime (com.google.android.gms:play-services-vision-common:19.1.3) and play-services-vision-face-contour-internal-16.0.0-runtime (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0)
Duplicate class com.google.android.gms.internal.vision.zzkj found in modules play-services-vision-common-19.1.3-runtime (com.google.android.gms:play-services-vision-common:19.1.3) and play-services-vision-face-contour-internal-16.0.0-runtime (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0)
Duplicate class com.google.android.gms.internal.vision.zzkk found in modules play-services-vision-common-19.1.3-runtime (com.google.android.gms:play-services-vision-common:19.1.3) and play-services-vision-face-contour-internal-16.0.0-runtime (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0)
Duplicate class com.google.android.gms.internal.vision.zzkl found in modules play-services-vision-common-19.1.3-runtime (com.google.android.gms:play-services-vision-common:19.1.3) and play-services-vision-face-contour-internal-16.0.0-runtime (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0)
Duplicate class com.google.android.gms.internal.vision.zzkm found in modules play-services-vision-common-19.1.3-runtime (com.google.android.gms:play-services-vision-common:19.1.3) and play-services-vision-face-contour-internal-16.0.0-runtime (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0)
Duplicate class com.google.android.gms.internal.vision.zzkn found in modules play-services-vision-common-19.1.3-runtime (com.google.android.gms:play-services-vision-common:19.1.3) and play-services-vision-face-contour-internal-16.0.0-runtime (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0)
Duplicate class com.google.android.gms.internal.vision.zzko found in modules play-services-vision-common-19.1.3-runtime (com.google.android.gms:play-services-vision-common:19.1.3) and play-services-vision-face-contour-internal-16.0.0-runtime (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0)
Duplicate class com.google.android.gms.internal.vision.zzkp found in modules play-services-vision-common-19.1.3-runtime (com.google.android.gms:play-services-vision-common:19.1.3) and play-services-vision-face-contour-internal-16.0.0-runtime (com.google.android.gms:play-services-vision-face-contour-internal:16.0.0)
The suggestion would be NOT to mixed use of these two libraries, since the symbol duplication issues mentioned above.
We provided a migration doc here: https://developers.google.com/ml-kit/migration/android
We are happy to help if there is any migration issue in the process.
I am using
com.quickblox:quickblox-android-sdk-videochat-webrtc:3.9.1 for Chat
and
org.jitsi.react:jitsi-meet-sdk:2.10.0 //for Meeting
but unable to resolve these issues
Duplicate class org.webrtc.AndroidVideoDecoder found in modules
jetified-google-webrtc-1.0.25003-runtime
(org.webrtc:google-webrtc:1.0.25003) and
jetified-react-native-webrtc-1.84.0-jitsi-5385907-runtime
(com.facebook.react:react-native-webrtc:1.84.0-jitsi-5385907)
Duplicate class org.webrtc.AndroidVideoDecoder$1 found in modules
jetified-google-webrtc-1.0.25003-runtime
(org.webrtc:google-webrtc:1.0.25003) and
jetified-react-native-webrtc-1.84.0-jitsi-5385907-runtime
(com.facebook.react:react-native-webrtc:1.84.0-jitsi-5385907)
Duplicate class org.webrtc.AndroidVideoDecoder$DecodedTextureMetadata
found in modules jetified-google-webrtc-1.0.25003-runtime
(org.webrtc:google-webrtc:1.0.25003) and
jetified-react-native-webrtc-1.84.0-jitsi-5385907-runtime
(com.facebook.react:react-native-webrtc:1.84.0-jitsi-5385907)
Duplicate class org.webrtc.AndroidVideoDecoder$FrameInfo found in
modules jetified-google-webrtc-1.0.25003-runtime
(org.webrtc:google-webrtc:1.0.25003) and
jetified-react-native-webrtc-1.84.0-jitsi-5385907-runtime
(com.facebook.react:react-native-webrtc:1.84.0-jitsi-5385907)
Duplicate class org.webrtc.AudioProcessingFactory found in modules
jetified-google-webrtc-1.0.25003-runtime
(org.webrtc:google-webrtc:1.0.25003) and
jetified-react-native-webrtc-1.84.0-jitsi-5385907-runtime
(com.facebook.react:react-native-webrtc:1.84.0-jitsi-5385907)
Duplicate class org.webrtc.AudioSource found in modules
jetified-google-webrtc-1.0.25003-runtime
(org.webrtc:google-webrtc:1.0.25003) and
jetified-react-native-webrtc-1.84.0-jitsi-5385907-runtime
(com.facebook.react:react-native-webrtc:1.84.0-jitsi-5385907)
Duplicate class org.webrtc.AudioTrack found in modules
jetified-google-webrtc-1.0.25003-runtime
(org.webrtc:google-webrtc:1.0.25003) and
jetified-react-native-webrtc-1.84.0-jitsi-5385907-runtime
(com.facebook.react:react-native-webrtc:1.84.0-jitsi-5385907)
Duplicate class org.webrtc.BaseBitrateAdjuster found in modules
jetified-google-webrtc-1.0.25003-runtime
(org.webrtc:google-webrtc:1.0.25003) and
jetified-react-native-webrtc-1.84.0-jitsi-5385907-runtime
(com.facebook.react:react-native-webrtc:1.84.0-jitsi-5385907)
Duplicate class org.webrtc.BitrateAdjuster found in modules
jetified-google-webrtc-1.0.25003-runtime
(org.webrtc:google-webrtc:1.0.25003) and
jetified-react-native-webrtc-1.84.0-jitsi-5385907-runtime
(com.facebook.react:react-native-webrtc:1.84.0-jitsi-5385907)
Duplicate class org.webrtc.CallSessionFileRotatingLogSink found in
modules jetified-google-webrtc-1.0.25003-runtime
(org.webrtc:google-webrtc:1.0.25003) and
jetified-react-native-webrtc-1.84.0-jitsi-5385907-runtime
(com.facebook.react:react-native-webrtc:1.84.0-jitsi-5385907)
Duplicate class org.webrtc.CalledByNative found in modules
jetified-google-webrtc-1.0.25003-runtime
(org.webrtc:google-webrtc:1.0.25003) and
jetified-react-native-webrtc-1.84.0-jitsi-5385907-runtime
(com.facebook.react:react-native-webrtc:1.84.0-jitsi-5385907)
Duplicate class org.webrtc.CalledByNativeUnchecked found in modules
jetified-google-webrtc-1.0.25003-runtime
(org.webrtc:google-webrtc:1.0.25003) and
jetified-react-native-webrtc-1.84.0-jitsi-5385907-runtime
(com.facebook.react:react-native-webrtc:1.84.0-jitsi-5385907)
Duplicate class org.webrtc.Camera1Capturer found in modules
jetified-google-webrtc-1.0.25003-runtime
Probably a late answer but for future reference, both of the dependencies are using WebRtc as a transitive dependency and thus duplicate classes
implementation ('org.jitsi.react:jitsi-meet-sdk:2.10.0') {
transitive = true
exclude group: 'com.facebook.react', module: 'react-native-webrtc'
}