2

I have used this lib in my code

com.twilio:video-android:4.2.0

enter image description here

I want to exclude this jar file from it because it is conflicted with one other libraries

I have tried many ways but non of them work with me

iDeveloper
  • 1,699
  • 22
  • 47
Amira Elsayed Ismail
  • 9,216
  • 30
  • 92
  • 175

2 Answers2

-1

Use this to remove the library for one of the gradle dependency

implementation ('com.twilio:video-android:4.2.0'){
    exclude module:'<whatever module is in libwebrtc.jar>'
}
kerry
  • 2,362
  • 20
  • 33
  • I use all these combination and not work implementation ('com.twilio:video-android:4.2.0'){ exclude group: 'org.webrtc' exclude module: "org.webrtc" exclude module: "libwebrtc" exclude module: "libwebrtc.jar" exclude module: 'libwebrtc' exclude module: 'libwebrtc.jar' } – Amira Elsayed Ismail Jun 19 '19 at 07:26
-1

please try below in your gradle dependency.

implementation ('com.twilio:video-android:4.2.0'){
    exclude module: "libwebrtc.jar"
}

Please refer to this answer for further help.

Asad Ali Choudhry
  • 4,985
  • 4
  • 31
  • 36
  • I use all these combination and not work implementation ('com.twilio:video-android:4.2.0'){ exclude group: 'org.webrtc' exclude module: "org.webrtc" exclude module: "libwebrtc" exclude module: "libwebrtc.jar" exclude module: 'libwebrtc' exclude module: 'libwebrtc.jar' } – Amira Elsayed Ismail Jun 19 '19 at 07:25
  • please try this one https://stackoverflow.com/a/20073207/5701085 I hope it should work, if it works, let me know I'll modify my answer, For jar we'll use exclude group, instead of excluded module. – Asad Ali Choudhry Jun 19 '19 at 07:42