chinalwb / Android-Rich-text-Editor

Android Rich Text Editor With customized spans - 富文本编辑器 - Don't miss this one :)
Apache License 2.0
845 stars 166 forks source link

Gilde library error when using AutocompleteSupportFragment (Google) #69

Open abroresonaliev opened 5 years ago

abroresonaliev commented 5 years ago

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)

chinalwb commented 5 years ago

Did you try to clean and rebuild you app?

abroresonaliev commented 5 years ago

Did you try to clean and rebuild you app?

yes, more time

chinalwb commented 5 years ago

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

chinalwb commented 5 years ago
+--- 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.