Landroid/widget/ImageView 类中没有字段 mMaxWidth [英] No field mMaxWidth in class Landroid/widget/ImageView

查看:31
本文介绍了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.

这篇关于Landroid/widget/ImageView 类中没有字段 mMaxWidth的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆