我被卡在这个错误上:
重复的类com.google.android.gms.location.places.zza在模块classes.jar(com.google.android.gms:play-services-places-placereport:16.0.0)和classes.jar( com.google.android.gms:play-services-places:10.2.0)
我的依赖项是:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
//implementation 'androidx.appcompat:appcompat:1.1.0'
//Add Library
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converter-scalars:2.3.0'
implementation 'com.github.glomadrian:MaterialAnimatedSwitch:1.1@aar'
implementation 'com.firebase:geofire-android:2.1.2'
implementation 'com.github.d-max:spots-dialog:0.7@aar'
implementation 'com.android.support:appcompat-v7:26.+'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'uk.co.chrisjenx:calligraphy:2.3.0'
implementation 'com.rengwuxian.materialedittext:library:2.1.4'
implementation 'com.android.support:design:26.+'
implementation 'com.android.support:cardview-v7:26.+'
implementation 'com.google.firebase:firebase-database:10.2.0'
implementation 'com.google.firebase:firebase-auth:10.2.0'
implementation 'com.google.android.gms:play-services-maps:10.2.0'
implementation 'com.google.android.gms:play-services:10.2.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.google.android.libraries.places:places:1.0.0'
implementation 'com.karumi:dexter:5.0.0'
testImplementation 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
如果我删除实现'com.google.android.gms:play-services:10.2.0',则会出现错误错误:包com.google.android.gms.location.places.ui不存在