No field mMaxWidth in class Landroid/widget/ImageView(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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Landroid/widget/ImageView 类中没有字段 mMaxWidth
基础教程推荐
- 如何对 Java Hashmap 中的值求和 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- Struts2 URL 无法访问 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
