Duplicate class org.webrtc.AndroidVideoDecoder while using Jitsi Sdk and quickblox-android-sdk

1.7k Views Asked by At

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

1

There are 1 best solutions below

2
On

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'
}