Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

集成进去后报错 #55

Closed
939582415 opened this issue May 5, 2019 · 1 comment
Closed

集成进去后报错 #55

939582415 opened this issue May 5, 2019 · 1 comment

Comments

@939582415
Copy link

Caused by: java.lang.IllegalStateException: You cannot call Glide.get() in registerComponents(), use the provided Glide instance instead
at com.bumptech.glide.Glide.checkAndInitializeGlide(Glide.java:178)
at com.bumptech.glide.Glide.get(Glide.java:166)
at com.bumptech.glide.Glide.getRetriever(Glide.java:680)
at com.bumptech.glide.Glide.with(Glide.java:707)
at com.sunfusheng.progress.GlideApp.with(GlideApp.java:88)
at com.sunfusheng.GlideImageLoader.(GlideImageLoader.java:42)
at com.sunfusheng.GlideImageLoader.create(GlideImageLoader.java:37)
at com.sunfusheng.GlideImageView.init(GlideImageView.java:43)
at com.sunfusheng.GlideImageView.(GlideImageView.java:39)
at com.sunfusheng.GlideImageView.(GlideImageView.java:34)
at java.lang.reflect.Constructor.constructNative(Native Method) 
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 
at android.view.LayoutInflater.createView(LayoutInflater.java:597) 

@sunfusheng
Copy link
Owner

应该是混淆的问题,加一下如下的混淆命令:
-keep class com.bumptech.glide.GeneratedAppGlideModuleImpl { *; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants