我在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'
}
我不知道为什么我从谷歌添加地方库后得到这个错误Cannot resolve com.bumptech.glide.request.animation.GlideAnimation
。当我删除它没有问题。
解决方案是添加这个:
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'
}
}