tapsellorg/TapsellPlusSDK-AndroidSample

🐛  باگ: Duplicate class com.bumptech.glide.Glide

Closed this issue · 9 comments

شرح باگ در پلاگین: tapsell و glide ستفاده از کتابخانهl

متن کامل خطا یا لاگ مرتبط به طور کامل:
Execution failed for task ':app:checkDebugDuplicateClasses'.

1 exception was raised by workers:
java.lang.RuntimeException: Duplicate class com.bumptech.glide.Glide found in modules classes.jar (com.github.bumptech.glide:glide:4.11.0) and jetified-glide-3.6.0.jar (glide-3.6.0.jar)
Duplicate class com.bumptech.glide.GlideBuilder found in modules classes.jar (com.github.bumptech.glide:glide:4.11.0) and jetified-glide-3.6.0.jar (glide-3.6.0.jar)
Duplicate class com.bumptech.glide.GlideBuilder$1 found in modules classes.jar (com.github.bumptech.glide:glide:4.11.0) and jetified-glide-3.6.0.jar (glide-3.6.0.jar)
Duplicate class com.bumptech.glide.ListPreloader found in modules classes.jar (com.github.bumptech.glide:glide:4.11.0) and jetified-glide-3.6.0.jar (glide-3.6.0.jar)
Duplicate class com.bumptech.glide.ListPreloader$PreloadModelProvider found in modules classes.jar (com.github.bumptech.glide:glide:4.11.0) and jetified-glide-3.6.0.jar (glide-3.6.0.jar)
Duplicate class com.bumptech.glide.ListPreloader$PreloadSizeProvider found in modules classes.jar (com.github.bumptech.glide:glide:4.11.0) and jetified-glide-3.6.0.jar (glide-3.6.0.jar)
Duplicate class com.bumptech.glide.ListPreloader$PreloadTarget found in modules classes.jar (com.github.bumptech.glide:glide:4.11.0) and jetified-glide-3.6.0.jar (glide-3.6.0.jar)
Duplicate class com.bumptech.glide.ListPreloader$PreloadTargetQueue found in modules classes.jar (com.github.bumptech.glide:glide:4.11.0) and jetified-glide-3.6.0.jar (glide-3.6.0.jar)
Duplicate class com.bumptech.glide.MemoryCategory found in modules classes.jar (com.github.bumptech.glide:glide:4.11.0) and jetified-glide-3.6.0.jar (glide-3.6.0.jar)
Duplicate class com.bumptech.glide.Priority found in modules classes.jar (com.github.bumptech.glide:glide:4.11.0) and jetified-glide-3.6.0.jar (glide-3.6.0.jar)
Duplicate class com.bumptech.glide.RequestManager found in modules classes.jar (com.github.bumptech.glide:glide:4.11.0) and jetified-glide-3.6.0.jar (glide-3.6.0.jar)
Duplicate class com.bumptech.glide.RequestManager$1 found in modules classes.jar (com.github.bumptech.glide:glide:4.11.0) and jetified-glide-3.6.0.jar (glide-3.6.0.jar)

نحوه‌ی تولید مجدد آن توسط تیم توسعه:

پکیج نیم برنامه‌: ir.seniorandroid.xinsta

اطلاعات اضافی که به حل مشکل کمک می‌کنند:
از نسخه 1.2.6 به بعد این باگ رو پیدا کرده و تو یه اپ دیگه هم تست کردم این اتفاق افتاده

سلام
ورژنی که استفاده کردید چند هست؟

نسخه‌ی آخر تپسل پلاس 2.1.3 از نسخه‌ی ۴.۱۲ گلاید استفاده میکنه

۱.۲.۶ی که گفتید خیلی قدیمی هست

ورژن آخر هم همین ورژنها رو ارور میده؟
اگر دستی خودتون نسخه‌ی نهایی گلاید رو اضافه کنید چطور؟
اینطوری نباید ورژنها فرق کنه

اگر همین ارور رو میده ۳.۶.۰ گلاید از کجا به پروژه ایمپورت میشه؟
لطفا تسک app:dependencies گریدل رو ران کنید و ببینید گلاید این ورژن با چه کتابخونه‌ای میاد تو پروژه

@miladev777 وضعیت مشکل به چه صورت شد؟

implementation 'ir.tapsell.plus:tapsell-plus-sdk-android:2.1.3'
implementation 'com.github.bumptech.glide:glide:4.12.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'

اینها نسخه های گلاید و تپسل هستش که استفاده میکنم

تسک app:dependencies ورژن ۳.۶.۰ گلاید رو از کجا نشون میده؟

این مشکل حل شد

1- کتابخونه گلاید رو که دستی با فایل
jar
اضافه شده بود رو حذف کردم و بعدش با استفاده از
implementation
.اضافه کردم به پروژه

2- updated gradle from version com.android.tools.build:gradle:3.5.0 to com.android.tools.build:gradle:3.5.4

and DONE.