我正在使用Maps Places服务进行迁移。这是我的Gradle应用程序
implementation 'com.github.bumptech.glide:glide:4.0.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0'
implementation 'com.google.android.gms:play-services-maps:11.4.2'
implementation 'com.google.android.gms:play-services-location:11.4.2'
//implementation 'com.google.android.gms:play-services-places:11.4.2'
implementation 'com.google.firebase:firebase-auth:11.4.2'
implementation 'com.google.firebase:firebase-messaging:11.4.2'
implementation 'com.android.support.constraint:constraint-layout:1.1.0-beta2'
implementation 'com.google.code.gson:gson:2.8.1'
implementation 'com.google.android.libraries.places:places-compat:1.1.0'
调试时发生以下错误
Duplicate class com.bumptech.glide.Priority found in modules glide-4.3.1-runtime.jar (com.github.bumptech.glide:glide:4.3.1) and glide-4.3.1.jar (com.github.bumptech.glide:glide:4.3.1)
答案 0 :(得分:1)
使用此:-
implementation 'com.github.bumptech.glide:glide:4.9.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
而不是:-
implementation 'com.github.bumptech.glide:glide:4.0.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0'