Twilio:Android依赖项问题 [英] Twilio: Android dependencies issue

查看:62
本文介绍了Twilio:Android依赖项问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在实现两个Twilio SDK:

I'm currently implementing two Twilio SDKs:

  • 可编程视频
  • IP消息系统客户端

我意识到一个依赖关系会影响另一个依赖关系,或者至少我是这样认为的,因为我首先实现了IP Messaging Client并且它可以完美运行,现在,当我添加Programmable Video的依赖关系时,尝试运行该项目,它说无法在包com.twilio.common中找到3个用于IP Messaging Client的使用的类,但是找到了Programmable Video的那些.这是gradle(模块)的一部分:

I'm realizing that one dependency affects the other, or at least so I believe, since I first implemented the IP Messaging Client and it worked flawlessly, and now that I've added the dependency for Programmable Video, when I try to run the project, it says it cannot find 3 of the used classes for IP Messaging Client in the package com.twilio.common, but those for Programmable Video are found. Here's 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 'com.android.support:appcompat-v7:23.1.1'
   compile 'com.android.support:design:23.1.1'
}

我与IP Messaging Client有冲突的类(它们不在包中,其他类在):

Also the classes that I have the conflict with of IP Messaging Client (they aren't in the package, the other clases are):

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

以及我正在使用的Programmable Video的类:

And the classes of Programmable Video that I'm 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;

请注意,Programmable Video中的类AccessManager是相同的,并且处于与IP Messaging Client所使用的类TwilioAccessManager相同的级别,理论上,它们的工作原理相同.但是找不到其他类. 我希望有人能帮助我!问候!

Note that class AccessManager from Programmable Video is the same and it's at the same level that class TwilioAccessManager used for IP Messaging Client, which in theory work equally. But the other classes can't be found. I'm hoping anyone can help me! Regards!

推荐答案

此处是Twilio开发人员的传播者.

Twilio Developer Evangelist here.

我们与com.twilio:ip-messaging-android:0.8.1发生了依赖冲突,但现在已解决该问题,并解决了它们在0.9.0中使用两个不同的AccessManager的事实.这应该可以解决您遇到的问题.

We had a dependency conflict with com.twilio:ip-messaging-android:0.8.1, but have now fixed that and the fact that they use two different AccessManagers in 0.9.0. this should solve the problem you're encountering.

因此,请将您的gradle文件更新为:

So please update your gradle file to be:

dependencies {
   compile 'com.koushikdutta.ion:ion:2.1.7'
   compile 'com.twilio:ip-messaging-android:0.9.0'
   compile 'com.twilio:conversations-android:0.12.2'
   compile 'com.android.support:appcompat-v7:23.1.1'
   compile 'com.android.support:design:23.1.1'
}

有关此更新的更多信息,请参见

More information about this update can be found here. Hope this helps you

这篇关于Twilio:Android依赖项问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆