Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot resolve GlideAnimation when added this in dependency implementation 'com.google.android.libraries.places:places:1.0.0'

I have this in 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'
}

I don't know why I am getting this error Cannot resolve com.bumptech.glide.request.animation.GlideAnimation after adding place library from Google. When I remove this there is no issue.

like image 287
bikram Avatar asked Mar 05 '23 13:03

bikram


1 Answers

The solution was to add this:

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'
    }
}
like image 160
bikram Avatar answered Mar 30 '23 00:03

bikram