首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >重复的zip条目CoordinatorLayout$Behavior.class])并且在更新库之后无法合并Dex

重复的zip条目CoordinatorLayout$Behavior.class])并且在更新库之后无法合并Dex
EN

Stack Overflow用户
提问于 2018-05-06 10:18:42
回答 1查看 469关注 0票数 0

我使用的是相同版本的库,并且根据Firebase/Play服务15.0.0版本的firebaseui文档,对应的firebaseui版本是3.3.1。这似乎是因为一些传递依赖。我尝试通过为特定依赖添加实现关键字来解决此问题,但无法解决此问题。

我的项目的build.gradle文件。

代码语言:javascript
复制
dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.google.dagger:dagger:2.10'
    annotationProcessor 'com.google.dagger:dagger-compiler:2.10'
    compile 'co.chatsdk.chatsdk:chat-sdk-core:4.0.8'
    compile 'co.chatsdk.chatsdk:chat-sdk-ui:4.0.8'
    compile 'co.chatsdk.chatsdk:chat-sdk-firebase-adapter:4.0.8'
    compile 'co.chatsdk.chatsdk:chat-sdk-firebase-file-storage:4.0.8'
    compile 'com.google.firebase:firebase-invites:15.0.0'
    compile 'com.android.support:multidex:1.0.1'
    compile 'com.android.support:design:27.0.0'
    compile 'com.google.firebase:firebase-core:15.0.0'
    compile 'com.google.firebase:firebase-auth:15.0.0'
    compile 'com.google.firebase:firebase-database:15.0.0'
    compile 'com.google.firebase:firebase-crash:15.0.0'
    compile 'com.google.firebase:firebase-config:15.0.0'
    compile 'com.firebaseui:firebase-ui-database:3.3.1'
    compile 'de.hdodenhof:circleimageview:2.2.0'
    compile 'com.google.firebase:firebase-storage:15.0.0'
    compile 'com.github.bumptech.glide:glide:4.0.0'
    compile 'com.squareup.retrofit2:retrofit:2.3.0'
    compile 'com.google.code.gson:gson:2.5.2'
    compile 'com.squareup.retrofit2:converter-gson:2.0.2'
    compile 'com.orhanobut:dialogplus:1.11@aar'
    compile 'com.github.clans:fab:1.5.4'
    compile 'com.google.firebase:firebase-messaging:15.0.0'
    compile 'com.basgeekball:awesome-validation:4.1'
    compile 'com.android.support:percent:27.0.0'
    compile 'com.google.firebase:firebase-ads:15.0.0'
    compile 'com.getkeepsafe.taptargetview:taptargetview:1.11.0'
    compile 'com.android.billingclient:billing:1.0'
    compile 'com.github.javiersantos:MaterialStyledDialogs:2.1'
    compile 'com.android.support.constraint:constraint-layout:+'
    compile 'co.chatsdk.chatsdk:chat-sdk-firebase-push:4.0.8'
    compile 'com.stepstone.stepper:material-stepper:4.3.1'
    compile 'com.android.support:animated-vector-drawable:27.0.0'
    testCompile 'junit:junit:4.12'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0'
    debugCompile 'com.amitshekhar.android:debug-db:1.0.1'
    implementation 'com.afollestad.material-dialogs:commons:0.9.6.0'
    implementation 'com.android.support:recyclerview-v7:27.0.0'
    implementation 'com.android.support:animated-vector-drawable:27.0.0'
    implementation 'com.google.android.gms:play-services-appinvite:15.0.0'
    implementation 'com.google.firebase:firebase-iid:15.0.0'
}


apply plugin: 'com.google.gms.google-services'

我在build.gradle中得到的2个警告是

我试图通过添加实现声明来解决这个问题。如何解决这个问题?

EN

回答 1

Stack Overflow用户

发布于 2018-05-06 13:01:20

Google recently starting breaking up Firebase and Google Play Services。在这样做的过程中,他们似乎将其中一个Firebase库的15.0.2版本作为对其他库的依赖,即使您请求的是15.0.0,这也导致了您所看到的冲突。

当我们试图根据那篇博文进行更新时,他们的指示似乎对我们不起作用,所以现在我们恢复到Google Play Services 12.0.1和Firebase 12.0.1,直到谷歌修复了这个问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50195690

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档