MVPArms icon indicating copy to clipboard operation
MVPArms copied to clipboard

Glide冲突问题

Open hardlove opened this issue 5 years ago • 8 comments

Look at here

  • → Did you conform to the Rules?
  • → Did you read the Wiki Carefully?
  • → Did you search in Google?
  • → Did you search in openned&closed Issues?
  • Receive only bugs and suggestions

Environment

  • [x] MVPArms Version:
  • [x] AndroidStudio Version:
  • [x] Gradle Plugin Version:
  • [x] Target Android Version:
  • [x] Device Model:

Bug Description:

Related Code:

  

Bug Log:


 App has crashed, executing CustomActivityOnCrash's UncaughtExceptionHandler
    java.lang.IllegalStateException: GeneratedAppGlideModuleImpl is implemented incorrectly. If you've manually implemented this class, remove your implementation. The Annotation processor will generate a correct implementation.
        at com.bumptech.glide.Glide.throwIncorrectGlideModule(Glide.java:341)
        at com.bumptech.glide.Glide.getAnnotationGeneratedGlideModules(Glide.java:333)
        at com.bumptech.glide.Glide.get(Glide.java:176)
        at com.bumptech.glide.Glide.getRetriever(Glide.java:714)
        at com.bumptech.glide.Glide.with(Glide.java:741)
        at com.view.GlideUitls.loadGlide(GlideUitls.java:179)
        at com.view.GlideUitls.load(GlideUitls.java:38)
        at com.hardlove.wallet.utils.ImageLoadUtils.load(ImageLoadUtils.java:44)

Others:

image 貌似新版的glide更框架中的GeneratedAppGlideModuleImpl 冲突了。

hardlove avatar Nov 13 '19 05:11 hardlove

框架一直都有自己实现的 AppGlideModule,使用者自己不能再自己实现 AppGlideModule,需要自己通过 https://github.com/JessYanCoding/MVPArms/blob/master/arms/src/main/java/com/jess/arms/http/imageloader/glide/GlideAppliesOptions.java 进行扩展

JessYanCoding avatar Nov 14 '19 02:11 JessYanCoding

框架一直都有自己实现的 AppGlideModule,使用者自己不能再自己实现 AppGlideModule,需要自己通过 https://github.com/JessYanCoding/MVPArms/blob/master/arms/src/main/java/com/jess/arms/http/imageloader/glide/GlideAppliesOptions.java 进行扩展

最新版本2.5.2 还没有 /** * 注册{@link Glide}的组件,参考{@link com.bumptech.glide.module.LibraryGlideModule} * * @param context Android context * @param glide {@link Glide} * @param registry {@link Registry} */ void registerComponents(@NonNull Context context, @NonNull Glide glide, @NonNull Registry registry); 这个方法吧 ,麻烦更新下吧

hardlove avatar Nov 20 '19 03:11 hardlove

嗯,先源码依赖

JessYanCoding avatar Nov 22 '19 02:11 JessYanCoding

嗯,先源码依赖

这个什么时候能发布啊?急等...

rexydimen avatar Mar 09 '20 02:03 rexydimen

@hardlove 将glide版换成4.9.0或者4.8.0就好了,如果在编译的时候出现gilde包supper包的异常,就在arms项目的build.gradle依赖 api rootProject.ext.dependencies["annotations"]改成 annotationProcessor rootProject.ext.dependencies["annotations"]就可以了!

hdd1024 avatar Mar 26 '20 07:03 hdd1024

什么时候解决啊

258188170 avatar May 22 '20 07:05 258188170

今天遇到个冲突问题,是一个aar依赖中的glide 版本和me.jessyan:arms-imageloader-glide:2.5.1 的不统一,统一之后可以了

logicsheng avatar Aug 12 '20 06:08 logicsheng

您好,我已收到您的邮件,我会尽快给您回复。

wscjy avatar Sep 15 '22 08:09 wscjy