Landroid/widget/ImageView 类中没有字段 mMaxWidth
我使用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或更高版本出现了该bug.如下所述:
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.
相关文章