我有一个“重复类”构建失败的问题,实际上不知道如何解决我尝试过的类冲突(从UI导航=> class =>显示了多个库,但不知道如何解决>
重复的课程android.support.design.widget.CoordinatorLayout
在模块classes.jar(com.android.support:coordinatorlayout:28.0.0
)中找到
和classes.jar(com.android.support:design:24.0.0
)
BuildOutPut中显示的错误
app / build.gradle
dependencies {
....
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
...
implementation 'com.firebaseui:firebase-ui-database:1.2.0'
implementation 'id.zelory:compressor:2.0.0'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.squareup.okhttp:okhttp:2.7.2'
implementation "com.google.android.gms:play-services-gcm:16.1.0"
implementation 'com.android.support:support-vector-drawable:28.0.0'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.6.0'
implementation 'com.google.firebase:firebase-storage:17.0.0'
implementation 'com.firebaseui:firebase-ui:0.4.2'
implementation 'com.google.firebase:firebase-messaging:18.0.0'
implementation 'com.google.firebase:firebase-appindexing:18.0.0'
implementation 'com.google.android.gms:play-services-maps:16.1.0'
}
project / build.gradle
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.2.0'
}
在这里查看android studio中显示的错误是什么 library dependency conflict or duplicate class