项目最近有个需求,需要增加动图功能。目前支持动图的图片加载框架一个是Glide,一个是Fresco。动手写Demo时,发现用Fresco加载Gif图片时报了下面的错。在官方issue上面找到了这个问题的原因,原来是我使用的Fresco版本问题。forceOldAnimationCode这个属性已经被移除了,所以找不到了。
解决办法:确保引入的所有Fresco相关的库的版本号都是一样的。
附上官方issue链接:
https://github.com/facebook/fresco/issues/1660
7-18 15:11:20.297 14207-14358/com.example.huanglin.dynamicimagedemo E/AndroidRuntime: FATAL EXCEPTION: Thread-24794
Process: com.example.huanglin.dynamicimagedemo, PID: 14207
java.lang.NoSuchFieldError: No instance field forceOldAnimationCode of type Z in class Lcom/facebook/imagepipeline/common/ImageDecodeOptions; or its superclasses (declaration of ‘com.facebook.imagepipeline.common.ImageDecodeOptions’ appears in/data/app/com.example.huanglin.dynamicimagedemo-1/base.apk)
at com.facebook.imagepipeline.animated.factory.AnimatedImageFactoryImpl.decodeGif(AnimatedImageFactoryImpl.java:84)
at com.facebook.imagepipeline.decoder.DefaultImageDecoder.decodeGif(DefaultImageDecoder.java:145)
at com.facebook.imagepipeline.decoder.DefaultImageDecoder
1.decode(DefaultImageDecoder.java:65)atcom.facebook.imagepipeline.decoder.DefaultImageDecoder.decode(DefaultImageDecoder.java:126)atcom.facebook.imagepipeline.producers.DecodeProducer
ProgressiveDecoder.doDecode(DecodeProducer.java:240)
at com.facebook.imagepipeline.producers.DecodeProducer
ProgressiveDecoder.access
200(DecodeProducer.java:112)
at com.facebook.imagepipeline.producers.DecodeProducer
ProgressiveDecoder
1.run(DecodeProducer.java:145)
at com.facebook.imagepipeline.producers.JobScheduler.doJob(JobScheduler.java:207)
at com.facebook.imagepipeline.producers.JobScheduler.access
000(JobScheduler.java:27)atcom.facebook.imagepipeline.producers.JobScheduler
1.run(JobScheduler.java:78)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor
Worker.run(ThreadPoolExecutor.java:588)atcom.facebook.imagepipeline.core.PriorityThreadFactory
1.run(PriorityThreadFactory.java:43)
at java.lang.Thread.run(Thread.java:833)
相关推荐
atom-z36xxx-z37xxx-datasheet-vol-2-329518.pdf
Intel Baytrail平台 Z3735G/Z3735F系列的芯片手册卷2,总共4274页。里面包括了芯片的详细描述、寄存器访问方法、内存映射访问方法、SDIO、EMMC、GPIO、I2C、SPI、USB寄存器等描述
No fieldxx of type I in classxx; or its superclasses (declaration of 'xxx' appears in xx.apk:classes
报错: /MobUncaughtExceptionHandler: No field recycler_view_1111 of type I in class Lcom/dmcbig/mediapicker/R$id; or its superclasses (declaration of 'com.dmcbig.mediapicker.R$id' appears in /data/app/co...
(详细总结)python爬取 163收件箱邮件内容,收件箱列表的几种方法(urllib, requests, selenium)
需求:最近有一个需求,需要将163邮箱收件箱里面的所有邮件的内容全部copy下来,整理到一个word里面,不多也就28页的邮件(不要问我为什么有这需求,不告诉你),自己手动去ctrl+ cv 的话,估计要搞吐。然后就想能不能用python的爬虫来实现,虽然过程比较苦(后期改bug改的要吐了)。但是会后还是将需求实现了。这基本也算是入门了 urllib、requests、selenium这几个py...
Mockito和PowerMockito的兼容
Mockito和PowerMockito的兼容 我的spring Boot是2.1.16RELEASE版本的,mockito是2.23.4版本的(这个版本的mockito去找相应的powerMockito有点尴尬,啥也不是),junit是4.12版本的,直接复制百度与junit相应版本的powerMockito的依赖(如下)会报错:java.lang.NoClassDefFoundError: org/mockito/cglib/proxy/Enhancer。 <!--powerMockito--&g
Flink CDC 3.0 详解
Flink CDC 是基于数据库日志 CDC(Change Data Capture)技术的实时数据集成框架,支持全增量一体化、无锁读取、并行读取、表结构变更自动同步、分布式架构等高级特性。配合Flink 优秀的管道能力和丰富的上下游生态,Flink CDC 可以高效实现海量数据的实时集成。Flink CDC 于2023年12月7日重磅推出其全新的 3.0 版本,3.0版本的发布对 Flink CDC 而言具有里程碑的意义,自此 Flink CDC 从捕获数据变更的Flink 数据源正式迈向为以 Flink
量化策略开发步骤系列(5)前向测试和统计意义
我们在第 4 部分,展示了我们策略的样本外测试并讨论了其结果。用于开发模型的数据是 2018 年至 2021 年的数据,测试数据是 2021 年至 2022 年的数据。但有一种方法可以更好地利用我们的数据。
解决java.lang.NoSuchFieldError: No field of type I in class Lcom/spd/tcs1g/R$id; or its superclasses
1.多个模块的时候activity重名 导致 报错 java.lang.NoSuchFieldError: No field of type I in class Lcom/spd/tcs1g/R$id; or its superclasses 解决: 重名的 activity 重命名 解决; 2.第三方库与项目中的布局或资源文件同名发生了冲突 解决:错误信息会指向某一个布局文件或是变...
LVGL高效加载外部Flash图片资源的实现与优化
本文深入探讨了在嵌入式UI开发中,如何为LVGL高效加载外部Flash中的图片资源。针对内部Flash容量不足的痛点,详细解析了LVGL的图片处理原理,并对比了内存映射与流式解码两种主流实现方案。文章重点提供了性能优化技巧与实战避坑指南,旨在帮助开发者实现流畅的图片加载体验,解决SPI Flash读取慢、内存占用高等核心挑战。
【Android】解决No static field xxxx of type I in class Lxxx/R$id错误
这种错误,是由于多个模块出现了同名的layout文件 编译时,一个Module中的layout文件被其它Module中的layout文件覆盖造成的 选择其中一个layout文件改下名称就行了
[OHIF-Viewers]医疗数字阅片-医学影像-cornerstone-core-Cornerstone.js-Cornerstone Examples-基石实例-下...
[OHIF-Viewers]医疗数字阅片-医学影像-cornerstone-core-Cornerstone.js-Cornerstone Examples-基石实例-下 CT Image with Window presets This is an example of displaying a ct image along with buttons to set ww/wc pres...
QNX侧触摸屏(TP)Bringup流程与源码深度解析
QNX侧TP Bringup的核心在于构建。
No static field xxxx of type I in class Lcom/xxx/xxx/R$id;
问题的原因是系统没有找到此id; 如果你可以找到此id的话,说明你的 layout.xml有重复的;把当前的layout.xml修改一下名字; 主工程和Model中的布局文件名称layout.xml也不可以相同; 注:需要修改的是 layout.xml的名字 不是该控件的 id 的名字; ...
(ICLR 2025)【源码讲解+复现】TIMER-XL: Long-Context Transformers for Unified Time Series Forecasting
本文提出了一种统一的多变量时序预测模型Timer-XL,其核心创新包括:1)采用自回归解码器架构,将多变量时序预测统一为next-token预测问题;2)设计TimeAttention机制,通过相对位置编码和因果掩码捕获时序位置和变量间交互;3)支持长上下文预训练以提升零样本迁移能力。模型架构包含嵌入层、时间感知注意力块和预测头,采用MSE损失进行端到端训练。实验表明该方法在多种时序任务上表现优异,特别是在长跨度预测和少样本场景下。代码实现提供了完整的模型定义、数据加载和训练流程,支持自定义配置参数。
java.lang.NoSuchFieldError: No instance field
找不到该方法 是因为大意少写了 @Autowired JavaBean中注解
R语言glm函数构建二分类logistic回归模型、epiDisplay包logistic.display函数获取模型汇总统计信息(自变量初始和调整后的优势比及置信区间,回归系数的Wald检验的p值
R语言glm函数构建二分类logistic回归模型(family参数为binomial)、使用epiDisplay包logistic.display函数获取模型汇总统计信息(自变量初始和调整后的优势比及置信区间,回归系数的Wald检验的p值)
SIMATIC S7-1200, S7-1500 PID 控制[手册]
SIMATIC S7-1200, S7-1500 PID 控制[手册]
项目中遇到android 9.0问题
在这里只是记录一下在项目中遇到的Android9.0崩溃问题 1.问题:为了适配Android 9.0的刘海屏,使用谷歌推荐的方法:DisplayCutout类,但是使用后,如下代码中: WindowManager.LayoutParams lp = activity.getWindow().getAttributes(); lp.layoutInDisplayCutoutMode = W...
jre9下载 jdk9
(Java SE Runtime Environment 9.0) 9.0u175 官方最新版 【x86|x64】
Andorid NoSuchFieldError: No static field D of type I in class Lx/x/x/R$layout解决方案
Andorid NoSuchFieldError: No static field D of type I in class Lx/x/x/R$layout解决方案
VC中sqlite的使用
在VC中对sqlite的使用,实现数据库大批数据的快速插入,读取数据库中的数据在ListCtrl中显示
数学建模模型总结
这是本人在两年内准备参加数学建模竞赛搜集到的模型资料,已经经过了本人的筛选和整理,希望能够对准备参加数学建模竞赛的学弟学妹们提供一些帮助!
Android P版本 (六)刘海屏适配 与WindowInsets,DisplayCutout使用
Android P版本的发布,引入了刘海屏的概念,像华为nova 3e,vivo X21等手机厂商也纷纷推出自己的刘海屏手机,我们先预览下HUAWEI nova 3e的机照 从这张图中我们可以看出,所谓的刘海屏实际上是安装在状态栏的一块玻璃屏幕,刘海屏的高度等于状态栏的高度 如果我们的的app没有适配android p的刘海屏,那么在显示的时候变会出现问题, 1)如没有状态栏,全屏显示的...
java.lang.NoSuchFieldError: 完美解决办法,以及原因
FATAL EXCEPTION: main Process: cn.com.jusoft.epumping.staff, PID: 27129 ...
升级fresco依赖后加载GIF崩溃
Androidstudio提示更新gradle依赖,更新之后加载GIF就出现崩溃了,报错: java.lang.NoSuchFieldError: No field forceOldAnimationCode of type Z in class Lcom/facebook/imagepipeline/common/a; or its superclasses (declaration of 'c...
java.lang.NoSuchFieldError: No field title of type I
java.lang.NoSuchFieldError: No field title of type I
android开发过程中遇到的问题
记录android开发过程中遇到的问题。 1.在一个xml中能否使用同一个include多次 http://www.apkbus.com/android-104152-1-1.html android中include标签的使用 http://blog.youkuaiyun.com/wangljgood/article/details/6556175 2. android bu
6063



被折叠的 条评论
为什么被折叠?



