twilio / voice-quickstart-android

Quickstart app for the Voice Android SDK
https://www.twilio.com/docs/api/voice-sdk/android/getting-started
MIT License
184 stars 140 forks source link

How to use voice and video together in one application #280

Closed khushboojain942 closed 5 years ago

khushboojain942 commented 5 years ago

Hello Sir, my application concept Is based on voice and video features, but when i used this with two library then gradle is return duplicate library issue error that's why i am trying this common library but this library also return this Apache issue

implementation 'com.twilio:video-android:4.2.0' implementation 'com.twilio:voice-android:3.1.0'

Error: Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.

com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes. Program type already present: org.webrtc.ContextUtils

And when I exclude this then showing another duplicate_classes

Please suggest me any suggestion to use both features together in application

aymenn commented 5 years ago

Hi @khushboojain942

Thank you for using Twilio.

We are working at adding support for this in an upcoming release. This issue is being tracked here https://github.com/twilio/voice-quickstart-android/issues/275.

If we don't run into any major hurdles, this could be available as soon as July/August.

Thank you for your patience.

Kind regards, Aymen Naim

codeanees commented 2 years ago

Just a ask, Can we use both Twilio.Voice and Twilio.Video in single android application?

I am using Twilio in my Xamarin Android application. I get the below error when I build the app with both Twilio.Audio and Twilio.Video SDK's

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(3,3): Error XA1014: JAR library references with identical file names but different contents were found: libwebrtc.jar. Please remove any conflicting libraries from EmbeddedJar, InputJar and AndroidJavaLibrary. (XA1014) (Sample)

kbagchiGWC commented 2 years ago

Yes Twilio Voice and Twilio Video SDK or any other WebRTC Libraries are side-by-side compatible. You can find details here.

Please note the versions of the SDKs. Android Voice SDK introduced side-by-side support in Voice Android SDK 3..2.0.