Twilio: Problems with dependencies in Android


doing an implementation of two Twilio SDKs:

  • Programmable Video
  • IP Messaging Client

I find the problem that the dependencies of one, affects me the other, or at least I think that since I first implemented the IP Messaging Client and it worked without problems, and now that I have added the dependency for Programmable Video , and I try to run the project, he tells me that you do not find 3 of the classes used for IP Messaging Client in the%% package, but% of% co_ if you find them. Below I specify part of the gradle (Module):

dependencies {
   compile 'com.koushikdutta.ion:ion:2.1.7'
   compile 'com.twilio:ip-messaging-android:0.8.1'
   compile 'com.twilio:conversations-android:0.12.2'
   compile ''
   compile ''

Also the classes with which I have the conflict of com.twilio.common (they are not in the package, the other classes if they are):

import com.twilio.common.TwilioAccessManager;
import com.twilio.common.TwilioAccessManagerFactory;
import com.twilio.common.TwilioAccessManagerListener;

And the Programmable Video classes that I am using:

import com.twilio.common.AccessManager;
import com.twilio.conversations.IncomingInvite;
import com.twilio.conversations.LogLevel;
import com.twilio.conversations.TwilioConversationsClient;
import com.twilio.conversations.TwilioConversationsException;

Note that the class IP Messaging Client of Programmable Video is the same and is at the same level as the class AccessManager used for Programmable Video which in theory do the same. But the other classes are not found.

I hope someone can help me with this problem. Greetings!

asked by Ernesto Rojas 26.07.2016 в 20:47

2 answers


Already a Twilio programmer answered me by stackoverflow english and told me about the new update of the ip-messaging-android SDK:

compile 'com.twilio:ip-messaging-android:0.9.0'
compile 'com.twilio:conversations-android:0.12.2'

Coincidentally this update (which solves the problem between SDK's) was published one day after I asked my question xD.

Reference: link

answered by 28.07.2016 / 15:19

I see that your dependancies of twilio are of different versions:

 compile 'com.twilio:ip-messaging-android:0.8.1'   <--
 compile 'com.twilio:conversations-android:0.12.2' <--

Probably changing the dependence of conversations to 0.8.1

compile 'com.twilio:conversations-android:0.8.1'

I'm not 100% sure but able to work. Greetings!

answered by 26.07.2016 в 23:57