Skip to content

Getting Duplicate class error at build time while also using another webrtc based package #51

@mukul-sharma085

Description

@mukul-sharma085
  • What went wrong:
    Execution failed for task ':app:checkDevDebugDuplicateClasses'.

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
Duplicate class org.webrtc.AddIceObserver found in modules android-137.7151.01.aar -> jetified-android-137.7151.01-runtime (io.github.webrtc-sdk:android:137.7151.01) and stream-webrtc-android-1.3.8.aar -> jetified-stream-webrtc-android-1.3.8-runtime (io.getstream:stream-webrtc-android:1.3.8)
Duplicate class org.webrtc.AndroidVideoDecoder found in modules android-137.7151.01.aar -> jetified-android-137.7151.01-runtime (io.github.webrtc-sdk:android:137.7151.01) and stream-webrtc-android-1.3.8.aar -> jetified-stream-webrtc-android-1.3.8-runtime (io.getstream:stream-webrtc-android:1.3.8)
Duplicate class org.webrtc.AndroidVideoDecoder$1 found in modules android-137.7151.01.aar -> jetified-android-137.7151.01-runtime (io.github.webrtc-sdk:android:137.7151.01) and stream-webrtc-android-1.3.8.aar -> jetified-stream-webrtc-android-1.3.8-runtime (io.getstream:stream-webrtc-android:1.3.8)
.....................

I have both "@stream-io/react-native-webrtc": "^125.0.8",
"@stream-io/video-react-native-sdk": "^1.11.3", and "@livekit/react-native": "^2.9.1",
"@livekit/react-native-webrtc": "^137.0.1", in my project, I wanted to use Eleven Labs sdk which is dependent on livekit/ webrtc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions