小编Ada*_*ary的帖子

添加新库时出现错误"程序类型已存在:android.support.design.widget.CoordinatorLayout $ Behavior"

当我尝试向项目添加新库然后运行我的应用程序时,我收到此错误:

程序类型已存在:android.support.design.widget.CoordinatorLayout $ Behavior

以下是我想添加的库

  1. implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.0'
  2. implementation 'com.github.yalantis:ucrop:2.2.2'

这是我的应用级gradle文件

apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    defaultConfig {
        applicationId "com.techxee.adarsh.chatbeta"
        minSdkVersion 15
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:27.0.2'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    implementation 'com.google.firebase:firebase-auth:11.8.0'
    implementation 'com.android.support:design:26.1.0'
    implementation 'com.android.support:support-v4:26.1.0'
    implementation 'com.google.firebase:firebase-database:11.8.0'
    implementation 'de.hdodenhof:circleimageview:2.2.0'
    //For firebase UI
    implementation 'com.firebaseui:firebase-ui-database:3.1.3'
    implementation 'com.google.firebase:firebase-storage:11.8.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
    //For bottom …
Run Code Online (Sandbox Code Playgroud)

android gradle ucrop

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

android ×1

gradle ×1

ucrop ×1