簡體   English   中英

Jitsi Meet 和 Sendbird class 沖突

[英]Jitsi Meet and Sendbird class conflicts

我想將 Jitsi 會議和發送鳥集成到我的項目中。 為此,我添加了以下依賴項。

implementation 'com.sendbird.sdk:sendbird-android-sdk:3.1.15'
implementation 'com.sendbird.sdk:sendbird-calls:1.8.0'
implementation('org.jitsi.react:jitsi-meet-sdk:6.0.0') {
     transitive = true
}

但是當我嘗試運行該項目時,我遇到了以下錯誤。

> Task :app:dexBuilderDebug

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
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.100.1-jitsi-11101599-runtime (com.facebook.react:react-native-webrtc:1.100.1-jitsi-11101599) and jetified-sendbird-calls-1.8.0-runtime (com.sendbird.sdk:sendbird-calls:1.8.0)
     Duplicate class org.webrtc.AndroidVideoDecoder$1 found in modules jetified-react-native-webrtc-1.100.1-jitsi-11101599-runtime (com.facebook.react:react-native-webrtc:1.100.1-jitsi-11101599) and jetified-sendbird-calls-1.8.0-runtime (com.sendbird.sdk:sendbird-calls:1.8.0)
     Duplicate class org.webrtc.AndroidVideoDecoder$DecodedTextureMetadata found in modules jetified-react-native-webrtc-1.100.1-jitsi-11101599-runtime (com.facebook.react:react-native-webrtc:1.100.1-jitsi-11101599) and jetified-sendbird-calls-1.8.0-runtime (com.sendbird.sdk:sendbird-calls:1.8.0)
     Duplicate class org.webrtc.AndroidVideoDecoder$FrameInfo found in modules jetified-react-native-webrtc-1.100.1-jitsi-11101599-runtime (com.facebook.react:react-native-webrtc:1.100.1-jitsi-11101599) and jetified-sendbird-calls-1.8.0-runtime (com.sendbird.sdk:sendbird-calls:1.8.0)
     Duplicate class org.webrtc.AudioDecoderFactoryFactory found in modules jetified-react-native-webrtc-1.100.1-jitsi-11101599-runtime (com.facebook.react:react-native-webrtc:1.100.1-jitsi-11101599) and jetified-sendbird-calls-1.8.0-runtime (com.sendbird.sdk:sendbird-calls:1.8.0)
     Duplicate class org.webrtc.AudioEncoderFactoryFactory found in modules jetified-react-native-webrtc-1.100.1-jitsi-11101599-runtime (com.facebook.react:react-native-webrtc:1.100.1-jitsi-11101599) and jetified-sendbird-calls-1.8.0-runtime (com.sendbird.sdk:sendbird-calls:1.8.0)
     Duplicate class org.webrtc.AudioProcessingFactory found in modules jetified-react-native-webrtc-1.100.1-jitsi-11101599-runtime (com.facebook.react:react-native-webrtc:1.100.1-jitsi-11101599) and jetified-sendbird-calls-1.8.0-runtime (com.sendbird.sdk:sendbird-calls:1.8.0)
     Duplicate class org.webrtc.AudioSource found in modules jetified-react-native-webrtc-1.100.1-jitsi-11101599-runtime (com.facebook.react:react-native-webrtc:1.100.1-jitsi-11101599) and jetified-sendbird-calls-1.8.0-runtime (com.sendbird.sdk:sendbird-calls:1.8.0)
     Duplicate class org.webrtc.AudioTrack found in modules jetified-react-native-webrtc-1.100.1-jitsi-11101599-runtime (com.facebook.react:react-native-webrtc:1.100.1-jitsi-11101599) and jetified-sendbird-calls-1.8.0-runtime (com.sendbird.sdk:sendbird-calls:1.8.0)
     Duplicate class org.webrtc.BaseBitrateAdjuster found in modules jetified-react-native-webrtc-1.100.1-jitsi-11101599-runtime (com.facebook.react:react-native-webrtc:1.100.1-jitsi-11101599) and jetified-sendbird-calls-1.8.0-runtime (com.sendbird.sdk:sendbird-calls:1.8.0)
     Duplicate class org.webrtc.BitrateAdjuster found in modules jetified-react-native-webrtc-1.100.1-jitsi-11101599-runtime (com.facebook.react:react-native-webrtc:1.100.1-jitsi-11101599) and jetified-sendbird-calls-1.8.0-runtime (com.sendbird.sdk:sendbird-calls:1.8.0)
     Duplicate class org.webrtc.BuiltinAudioDecoderFactoryFactory found in modules jetified-react-native-webrtc-1.100.1-jitsi-11101599-runtime (com.facebook.react:react-native-webrtc:1.100.1-jitsi-11101599) and jetified-sendbird-calls-1.8.0-runtime (com.sendbird.sdk:sendbird-calls:1.8.0)
     Duplicate class org.webrtc.BuiltinAudioEncoderFactoryFactory found in modules jetified-react-native-webrtc-1.100.1-jitsi-11101599-runtime (com.facebook.react:react-native-webrtc:1.100.1-jitsi-11101599) and jetified-sendbird-calls-1.8.0-runtime (com.sendbird.sdk:sendbird-calls:1.8.0)
     Duplicate class org.webrtc.CallSessionFileRotatingLogSink found in modules jetified-react-native-webrtc-1.100.1-jitsi-11101599-runtime (com.facebook.react:react-native-webrtc:1.100.1-jitsi-11101599) and jetified-sendbird-calls-1.8.0-runtime (com.sendbird.sdk:sendbird-calls:1.8.0)
     Duplicate class org.webrtc.CalledByNative found in modules jetified-react-native-webrtc-1.100.1-jitsi-11101599-runtime (com.facebook.react:react-native-webrtc:1.100.1-jitsi-11101599) and jetified-sendbird-calls-1.8.0-runtime (com.sendbird.sdk:sendbird-calls:1.8.0)

==============================================================================

* Get more help at https://help.gradle.org

BUILD FAILED in 3s
33 actionable tasks: 9 executed, 24 up-to-date
Caused by: com.android.builder.merge.DuplicateRelativeFileException: 2 files found with path 'lib/arm64-v8a/libjingle_peerconnection_so.so' from inputs:

請知道的人幫忙解答。

也許這不再相關,但嘗試將沖突的模塊添加到排除組:

implementation(project(':react-native-jitsi-meet')) {
   exclude group: 'com.facebook.react', module: 'react-native-webrtc'
}

就我而言,我使用本機反應

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM