使用Glide,当我尝试从Resid加载时,图像永远不会加载到我的版本变体上,它在调试变体上工作正常。以下是我的代码。
Glide.with(activity.applicationContext).load(R.drawable.mydrawable).into(imageView)
但是,如果我在发布和调试版本上提供图像URL或文件路径,它就可以工作
以下是我的proguard配置
# Glide
-keep class com.bumptech.glide.** { *;}
-keep public class * implements com.bumptech.glide.module.GlideModule
-keep public class * extends com.bumptech.glide.GeneratedAppGlideModule
-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
**[] $VALUES;
public *;
}