Landroid/widget/ImageView类中没有字段mMaxWidth [英] No field mMaxWidth in class Landroid/widget/ImageView
问题描述
我使用UniversalImageLoader
(displayImage
方法)加载图像
I used UniversalImageLoader
(displayImage
method) for loading image
但是它抛出NoSuchFieldException
异常:
Landroid/widget/ImageView类中没有字段mMaxWidth; (声明 "android.widget.ImageView"出现在 /system/framework/framework.jar!classes3.dex)
No field mMaxWidth in class Landroid/widget/ImageView; (declaration of 'android.widget.ImageView' appears in /system/framework/framework.jar!classes3.dex)
如何解决?
推荐答案
经过大量研究,似乎该错误显示在android 10或更高版本中. 如下所述:
After many researches, It seems that the bug is shown in android 10 or greater. as discussed below :
https://github.com/nostra13/Android-Universal -Image-Loader/issues/1343
因此,我移至Glide库,直到以后对其进行修复.
So I moved to Glide library until it's later fixes.
这篇关于Landroid/widget/ImageView类中没有字段mMaxWidth的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!