重复的类com.google.android.gms.common.AccountPicker

时间:2019-10-10 13:45:31

标签: android firebase-authentication

在mylibrary / build.gradle中:

implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'org.apache.commons:commons-lang3:3.8.1'
    implementation 'com.google.android.gms:play-services:4.3.23'
    implementation 'com.nineoldandroids:library:2.4.0'
    implementation 'edu.vt.middleware:vt-password:3.1.2'

在app / build.gradle中:

implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.firebase:firebase-auth:19.1.0'

但出现构建错误:

Duplicate class com.google.android.gms.common.AccountPicker found in modules classes.jar (com.google.android.gms:play-services-basement:17.0.0) and classes.jar (com.google.android.gms:play-services:4.3.23)
Duplicate class com.google.android.gms.common.ConnectionResult found in modules classes.jar (com.google.android.gms:play-services-basement:17.0.0) and classes.jar (com.google.android.gms:play-services:4.3.23)
Duplicate class com.google.android.gms.common.ErrorDialogFragment found in modules classes.jar (com.google.android.gms:play-services-base:17.1.0) and classes.jar (com.google.android.gms:play-services:4.3.23)
Duplicate class com.google.android.gms.common.GooglePlayServicesNotAvailableException found in modules classes.jar (com.google.android.gms:play-services-basement:17.0.0) and classes.jar (com.google.android.gms:play-services:4.3.23)
Duplicate class com.google.android.gms.common.GooglePlayServicesRepairableException found in modules classes.jar (com.google.android.gms:play-services-basement:17.0.0) and classes.jar (com.google.android.gms:play-services:4.3.23)
Duplicate class com.google.android.gms.common.GooglePlayServicesUtil found in modules classes.jar (com.google.android.gms:play-services-base:17.1.0) and classes.jar (com.google.android.gms:play-services:4.3.23)
Duplicate class com.google.android.gms.common.Scopes found in modules classes.jar (com.google.android.gms:play-services-basement:17.0.0) and classes.jar (com.google.android.gms:play-services:4.3.23)
Duplicate class com.google.android.gms.common.SignInButton found in modules classes.jar (com.google.android.gms:play-services-base:17.1.0) and classes.jar (com.google.android.gms:play-services:4.3.23)
Duplicate class com.google.android.gms.common.UserRecoverableException found in modules classes.jar (com.google.android.gms:play-services-basement:17.0.0) and classes.jar (com.google.android.gms:play-services:4.3.23)
Duplicate class com.google.android.gms.common.annotation.KeepName found in modules classes.jar (com.google.android.gms:play-services-basement:17.0.0) and classes.jar (com.google.android.gms:play-services:4.3.23)
Duplicate class com.google.android.gms.common.api.Api found in modules classes.jar (com.google.android.gms:play-services-base:17.1.0) and classes.jar (com.google.android.gms:play-services:4.3.23)
Duplicate class com.google.android.gms.common.api.CommonStatusCodes found in modules classes.jar (com.google.android.gms:play-services-basement:17.0.0) and classes.jar (com.google.android.gms:play-services:4.3.23)

0 个答案:

没有答案