GetStream / webrtc-android

🛰️ A versatile WebRTC pre-compiled Android library that reflects the recent WebRTC updates to facilitate real-time video chat for Android and Compose.
https://getstream.github.io/webrtc-android/
Apache License 2.0
552 stars 57 forks source link

Duplicate class exception #169

Closed YoussefHachicha closed 1 month ago

YoussefHachicha commented 1 month ago

Version kotlin = "2.0.0" streamWebRTC = "1.1.2"

when ever i import the library, i get this error

Caused by: java.lang.RuntimeException: Duplicate class org.webrtc.AndroidVideoDecoder found in modules stream-webrtc-android-1.1.2.aar -> stream-webrtc-android-1.1.2-runtime (io.getstream:stream-webrtc-android:1.1.2) and webrtc-1.0.5.aar -> webrtc-1.0.5-runtime (com.mesibo.api:webrtc:1.0.5)

skydoves commented 1 month ago

Hey @YoussefHachicha, it seems that you use another library that uses org.webrtc. package name. What's the com.mesibo.api:webrtc library? You may need to remove that dependency to avoid duplication crashes.