saibotma / jitsi_meet_wrapper

Jitsi Meet Plugin for Flutter. Wrapping JitsiMeetSDK for Android and iOS.
BSD 3-Clause "New" or "Revised" License
26 stars 62 forks source link

Compatibility issues when using Flutter WebRTC and Jitsi Meet together. #94

Open JagaranMaharjan opened 1 year ago

JagaranMaharjan commented 1 year ago

Duplicate class org.webrtc.AddIceObserver found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.AndroidVideoDecoder found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.AndroidVideoDecoder$1 found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.AndroidVideoDecoder$DecodedTextureMetadata found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.AndroidVideoDecoder$FrameInfo found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.AudioDecoderFactoryFactory found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.AudioEncoderFactoryFactory found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.AudioProcessingFactory found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.AudioSource found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.AudioTrack found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.BaseBitrateAdjuster found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.BitrateAdjuster found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.BuiltinAudioDecoderFactoryFactory found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.BuiltinAudioEncoderFactoryFactory found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.CallSessionFileRotatingLogSink found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.CalledByNative found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.CalledByNativeUnchecked found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.Camera1Capturer found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.Camera1Enumerator found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.Camera1Session found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.Camera1Session$1 found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.Camera1Session$2 found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.Camera1Session$SessionState found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.Camera2Capturer found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.Camera2Enumerator found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.Camera2Session found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.Camera2Session$CameraCaptureCallback found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.Camera2Session$CameraStateCallback found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.Camera2Session$CaptureSessionCallback found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.Camera2Session$SessionState found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.CameraCapturer found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.CameraCapturer$1 found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.CameraCapturer$2 found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.CameraCapturer$3 found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.CameraCapturer$4 found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.CameraCapturer$5 found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.CameraCapturer$6 found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.CameraCapturer$7 found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.CameraCapturer$8 found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.CameraCapturer$9 found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.CameraCapturer$SwitchState found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.CameraEnumerationAndroid found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.CameraEnumerationAndroid$1 found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.CameraEnumerationAndroid$2 found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.CameraEnumerationAndroid$CaptureFormat found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.CameraEnumerationAndroid$CaptureFormat$FramerateRange found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.CameraEnumerationAndroid$ClosestComparator found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.CameraEnumerator found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.CameraSession found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.CameraSession$CreateSessionCallback found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.CameraSession$Events found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.CameraSession$FailureType found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094) Duplicate class org.webrtc.CameraVideoCapturer found in modules jetified-android-104.5112.07-runtime (io.github.webrtc-sdk:android:104.5112.07) and jetified-react-native-webrtc-1.106.1-jitsi-12421094-runtime (com.facebook.react:react-native-webrtc:1.106.1-jitsi-12421094)

saibotma commented 1 year ago

Hey there,

please try the newest release and share a fully reproducible example if it still does not work.

JagaranMaharjan commented 1 year ago

@saibotma Steps to replicate issues:

Step 1: Add following dependency in your pubspec.yaml jitsi_meet_wrapper: ^0.1.2 flutter_webrtc: ^0.9.35

Step 2: Update minSdkVersion 24 in your project app build.gradle (android->app->build.gradle)

Step 3: Run your project

Step 4: Got following issues: FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

2: Task failed with an exception.

BUILD FAILED in 6s Exception: Gradle task assembleDebug failed with exit code 1

saibotma commented 1 year ago

Please try again with the newest release. The newest SDK versions had some changes regarding WebRTC.

JagaranMaharjan commented 1 year ago

@saibotma Even after updating to the latest versions of WebRTC and Jitsi Meet dependencies, I am still encountering the same issues. Added latest dependency: implementation 'io.github.webrtc-sdk:android:114.5735.01' implementation ('org.jitsi.react:jitsi-meet-sdk:8.1.2') { transitive = true }

Vinayak006 commented 4 months ago

Is the issue fixed? Any solutions found? @JagaranMaharjan

JagaranMaharjan commented 3 months ago

@Vinayak006 no this issue has not been resolved yet. if you find any solution related to it do let me know.