问题描述
我想配置的音频/视频聊天和存档音频/视频聊天OpenTok API。我已经成功配置音频/视频聊天OpenTok但无法执行归档。
I am trying to configure audio/video chat and archive audio/video chat with OpenTok API. I have successfully configure audio/video chat with OpenTok but unable to perform archive.
获得以下问题:
错误:未能执行任务 ':应用程序:packageAllDebugClassesForMultiDex。
java.util.zip.ZipException:重复的条目: 组织/阿帕奇/公/收藏/ ArrayStack.class
java.util.zip.ZipException: duplicate entry: org/apache/commons/collections/ArrayStack.class
这是我的库:
以下是我的依赖关系:
dependencies {
//compile project(':androidConferenceWebRTC')
compile project(':countryPicker')
compile project(':customEmoji')
compile project(':sugar')
compile fileTree(dir: 'libs', include: ['*.jar'])
compile('com.crashlytics.sdk.android:crashlytics:2.2.3@aar') {
transitive = true;
}
compile('com.twitter.sdk.android:twitter:1.3.2@aar') {
transitive = true;
}
compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.android.support:support-v4:22.0.0'
compile 'com.android.support:multidex:1.0.0'
compile 'com.pnikosis:materialish-progress:1.5'
compile 'com.facebook.android:facebook-android-sdk:3.20.0'
compile 'com.google.android.gms:play-services-base:7.0.0'
compile 'com.google.android.gms:play-services-ads:7.3.0'
compile 'com.google.android.gms:play-services-plus:7.0.0'
compile 'com.google.code.gson:gson:2.3'
compile 'org.apache.httpcomponents:httpcore:4.3.2'
compile 'org.apache.httpcomponents:httpmime:4.3.3'
compile 'org.jsoup:jsoup:1.8.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.pubnub:pubnub-android:3.7.2'
compile 'com.splitwise:tokenautocomplete:1.3.2'
compile 'com.mcxiaoke.volley:library:1.0.17'
//compile files('libs/opentok-android-sdk.jar')
compile 'com.tokbox:opentok-server-sdk:2.3.2'
//compile files('libs/opentok-server-sdk-2.3.2-javadoc.jar')
}
这是我的日志:
推荐答案
替换:
compile 'com.tokbox:opentok-server-sdk:2.3.2'
附:
compile group: 'com.tokbox', name: 'opentok-server-sdk', version: '2.2.0'
和重建。这应该解决您的问题。
and Rebuild. This Should Solve your problem.
同时,在你的build.gradle文件中添加这一点,如果你还没有加入他们。
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
}
我希望你有这个已经在你的build.gradle,如果不是有太
I hope you have this already in your build.gradle, if not than include it too
**multiDexEnabled true**
和在依赖编译com.android.support:multidex:1.0.0
。
这篇关于得到的问题,而归档opentok音频/视频聊天的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!