在依赖项实现'com.google.android.libraries.places:places:1.0.0'中添加此项时,无法解析GlideAnimation

Bik*_*ram 3 android google-places android-glide

我在build.gradle中有这个

dependencies {
   ...
   ...
   implementation 'com.github.bumptech.glide:glide:3.8.0'

   //getting conflict after adding this library
   implementation 'com.google.android.libraries.places:places:1.0.0'
}
Run Code Online (Sandbox Code Playgroud)

我不知道为什么Cannot resolve com.bumptech.glide.request.animation.GlideAnimation 从Google添加位置库后出现此错误。当我删除此没有问题。

Bik*_*ram 6

解决方案是添加以下内容:

dependencies {
   ...
   ...
   implementation 'com.github.bumptech.glide:glide:3.8.0'

   //exclude glide coming from place api
   implementation ('com.google.android.libraries.places:places:1.0.0'){
        exclude module: 'glide'
    }
}
Run Code Online (Sandbox Code Playgroud)