skrafft / react-native-jitsi-meet

React native wrapper for Jitsi Meet SDK
Apache License 2.0
285 stars 348 forks source link

Cannot build app if using libs webrtc #303

Open DUYTUNGPHAM opened 3 years ago

DUYTUNGPHAM commented 3 years ago

Execution failed for task ':app:checkDebugDuplicateClasses'.

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable Duplicate class org.webrtc.AndroidVideoDecoder found in modules jetified-react-native-webrtc-1.75.0-jitsi-2535222-runtime (com.facebook.react:react-native-webrtc:1.75.0-jitsi-2535222) and jetified-stringee-android-sdk-1.7.1-runtim e (com.stringee.sdk.android:stringee-android-sdk:1.7.1)

mayconmesquita commented 3 years ago

@DUYTUNGPHAM to avoid this error you must compile your own webrtc, using another package name (eg. org.webrtc -> alt.webrtc).

I did it here and it works successfully.

You can install from my fork (see the last 3 commits): https://github.com/mayconmesquita/react-native-webrtc

caglardurmus commented 2 years ago

@DUYTUNGPHAM to avoid this error you must compile your own webrtc, using another package name (eg. org.webrtc -> alt.webrtc).

I did it here and it works successfully.

You can install from my fork (see the last 3 commits): https://github.com/mayconmesquita/react-native-webrtc

I have same issue too. How can i do that? I am not using react-native-webrtc package in my project.

caglardurmus commented 2 years ago

used exclude group: 'com.facebook.react', module: 'react-native-webrtc' and i can build it now but i am getting error java.lang.ClassNotFoundException: Didn't find class "com.oney.WebRTCModule.WebRTCModule$Options"

vinaykumartss commented 1 year ago

used exclude group: 'com.facebook.react', module: 'react-native-webrtc' and i can build it now but i am getting error java.lang.ClassNotFoundException: Didn't find class "com.oney.WebRTCModule.WebRTCModule$Options"

Did you get the solution for this issue?. I am using quickblox and Jitsi meet both SDK in my project and added exclude group: 'com.facebook.react', module: 'react-native-webrtc'` error gone but app getting crash