由于新的依赖关系,任务 ':app:checkDebugDuplicateClasses' 执行失败。如何解决这个问题?

时间:2021-02-21 08:19:49

标签: android android-studio build.gradle

这是我 Gradle 的一部分。我在尝试添加新依赖项时遇到此错误。

dependencies {

    implementation fileTree(dir: 'libs', include: ['*.jar'])

    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
    implementation 'com.google.android.material:material:1.0.0'
    implementation 'com.github.luongvo:GmailBackground:2.1.1'
    implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.0.2'
}


allprojects {

    repositories {

        maven {
            url 'https://jitpack.io'
            }

        maven {
            url "https://repo.eclipse.org/content/repositories/paho-releases/"
        }

    }
}

我该如何解决这个错误?

0 个答案:

没有答案