Android-Rich-text-Editor icon indicating copy to clipboard operation
Android-Rich-text-Editor copied to clipboard

Gilde library error when using AutocompleteSupportFragment (Google)

Open abroresonaliev opened this issue 6 years ago • 4 comments

In project I use kotlin and android X.

After adding AutoCompleteSupportFragment

implementation 'com.google.firebase:firebase-core:16.0.9'    
   
implementation 'com.google.android.libraries.places:places:1.1.0'

on building showing next error. If I remove Android-Rich-text-Editor library not showing error.

  • Duplicate class com.bumptech.glide.GeneratedAppGlideModule found in modules classes.jar (com.github.bumptech.glide:glide:4.3.1) and jetified-glide-4.3.1.jar (com.github.bumptech.glide:glide:4.3.1)

  • Duplicate class com.bumptech.glide.GenericTransitionOptions found in modules classes.jar (com.github.bumptech.glide:glide:4.3.1) and jetified-glide-4.3.1.jar (com.github.bumptech.glide:glide:4.3.1)

  • Duplicate class com.bumptech.glide.Glide found in modules classes.jar (com.github.bumptech.glide:glide:4.3.1) and jetified-glide-4.3.1.jar (com.github.bumptech.glide:glide:4.3.1)

  • Duplicate class com.bumptech.glide.GlideBuilder found in modules classes.jar (com.github.bumptech.glide:glide:4.3.1) and jetified-glide-4.3.1.jar (com.github.bumptech.glide:glide:4.3.1)

  • Duplicate class com.bumptech.glide.GlideBuilder$1 found in modules classes.jar (com.github.bumptech.glide:glide:4.3.1) and jetified-glide-4.3.1.jar (com.github.bumptech.glide:glide:4.3.1)

  • Duplicate class com.bumptech.glide.GlideContext found in modules classes.jar (com.github.bumptech.glide:glide:4.3.1) and jetified-glide-4.3.1.jar (com.github.bumptech.glide:glide:4.3.1)

  • Duplicate class com.bumptech.glide.ListPreloader found in modules classes.jar (com.github.bumptech.glide:glide:4.3.1) and jetified-glide-4.3.1.jar (com.github.bumptech.glide:glide:4.3.1)

abroresonaliev avatar May 13 '19 05:05 abroresonaliev

Did you try to clean and rebuild you app?

chinalwb avatar May 13 '19 09:05 chinalwb

Did you try to clean and rebuild you app?

yes, more time

abroresonaliev avatar May 13 '19 09:05 abroresonaliev

Do you have jetified-glide-4.3.1.jar in your project already?

chinalwb avatar May 13 '19 09:05 chinalwb

+--- com.google.android.libraries.places:places:1.0.0
|    +--- com.android.support:appcompat-v7:26.1.0 (*)
|    +--- com.android.support:cardview-v7:26.1.0
|    |    \--- com.android.support:support-annotations:26.1.0
|    +--- com.android.support:recyclerview-v7:26.1.0 (*)
|    +--- com.android.support:support-v4:26.1.0 (*)
|    +--- com.android.volley:volley:1.1.1
|    +--- com.github.bumptech.glide:glide:4.3.1
|    |    +--- com.github.bumptech.glide:gifdecoder:4.3.1
|    |    |    \--- com.android.support:support-annotations:26.0.2 -> 26.1.0
|    |    +--- com.github.bumptech.glide:disklrucache:4.3.1
|    |    \--- com.github.bumptech.glide:annotations:4.3.1

As far as I can tell, com.google.android.libraries.places:places depends on glide, and are depends on glide too, somehow the compiler thinks they are conflict, sorry that I have no better idea than you'll have to checkout are and change the dependency from com.github.bumptech.glide:glide:4.3.1 to com.google.android.libraries.places:places.

chinalwb avatar May 13 '19 10:05 chinalwb