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
基础教程推荐
- 如何在相机中应用自定义滤镜 [Surfaceview 预览]. 2022-01-01
- 在java中使用xpath和selenium解析HTML表格数据 2022-01-01
- 在springboot中如何给mybatis加拦截器 2023-04-29
- doFilter()是在servlet的工作完成之前还是之后执行的? 2022-01-01
- Java ECDSAwithSHA256 签名长度不一致 2022-01-01
- JPA惰性列表上的流 2022-01-01
- 将 Windows 证书导入 Java 2022-01-01
- 控制台应用程序中的 Java 键盘输入解析 2022-01-01
- Maven:无效的目标版本:10 2022-01-01
- 将 double 转换为 Int,向下舍入 2022-01-01
