集成Glide4.3.1出错!AbstractMethodError: abstract method void com.bumptech.glide.module
项目中原本是用的Glide3.7.0,一切功能正常,但是集成了网易云信的UIKIT后,就出问题了,发现是Glide4.0的问题。
Glide4.0,始终会报这么一个错,就算是最简单的加载也仍然报错。
"void com.bumptech.glide.module.RegistersComponents.registerComponents(android.content.Context, com.bumptech.glide.Glide, com.bumptech.glide.Registry)"
查阅官方文档发现说要添加一个AppGlideModule类
@GlideModule public class MyAppGlideModule extends AppGlideModule { }
添加后,仍然出错!
差了很多文章,最后还是在这里找到了答案:https://stackoverflow.com/questions/47327760/glide-crash-because-of-context-4-3-1/47330015
需要在上面的类里面重载这个方法,终于搞定!
@Overridepublic boolean isManifestParsingEnabled() {return false;}
转载于:https://www.cnblogs.com/exmyth/p/8414883.html
集成Glide4.3.1出错!AbstractMethodError: abstract method void com.bumptech.glide.module相关推荐
- Android Studio提示No virtual method asBitmap()Lcom/bumptech/glide/RequestBuilder
1 问题 android studio导入别人项目的module,运行点击app,程序奔溃,错误日志如下 Process: com.example.chenyu, PID: 6302java.lang ...
- xxxx must either be declared abstract or implement abstract method ‘map(T)‘ in ‘MapFunction‘
完整报错如下: Class 'Anonymous class derived from MapFunction' must either be declared abstract or impleme ...
- xxx must either be declared abstract or implement abstract method ‘call(T1, T2)‘ in ‘Function2
intellij提示如下: Class 'Anonymous class derived from Function2' must either be declared abstract or imp ...
- The type new ActionListener(){} must implement the inherited abstract method ActionListener.actionPe
Java报错:The type new ActionListener(){} must implement the inherited abstract method ActionListener.a ...
- The type XXXX must implement the inherited abstract method XXXX
问题描述: 新手学Java时会遇到定义了一个类使用接口时,在Eclipse中总会报The type XXX(类名) must implement the inherited abstract meth ...
- Attempt to invoke virtual method ‘void cn.jiguang.share.android.api.AbsPlatform.notifyError
集成极光进行微信登录报错,技术客服也不会,能不用极光就不用极光,体验太差,坑太多 java.lang.NullPointerException: Attempt to invoke virtual m ...
- Attempt to invoke virtual method 'void android.widget.LinearLayout.setBackgroundColor(int)'
在做android_studio的本息计算器的时候,出现了一个问题: Attempt to invoke virtual method 'void android.widget.LinearLayou ...
- Error:Attempt to invoke virtual method ‘void android.widget.TextView.setText(java.lang.CharSeq
在进行Android开发学习是遇到一个error:Attempt to invoke virtual method 'void android.widget.TextView.setText(java ...
- jdk版本和maven版本的匹配问题,maven报错method ‘void <init>()‘ not found
安装maven的时候显示maven报错method 'void <init>()' not found的错误,后来发现是2021版本的idea跟maven的3.8.6的版本不兼容,需要下载 ...
最新文章
- 逆天了:Nature一篇论文57000位作者,更厉害的是,大多数作者都是游戏玩家
- 详解MariaDB数据库的存储过程
- 树莓派运行python import os未找到命令_通过pip指令在树莓派上基于Python3安装OpenCV...
- 音视频技术开发周刊 | 173
- 图解分布式系统架构演进之路
- 『飞秋』WCF热门问题编程示例
- [20160704]Block recover using RMAN.txt
- java 带参数转发_Nginx 根据URL带的参数转发的实现
- c语言互不相同删除法,GitHub - MXHDOIT/C_Practice: 100道C语言经典习题
- 如何查看端口是否开启
- echarts中环形图加边框
- 阿弥陀佛和他的极乐世界
- 被新冠后遗症困住15个月后,斯坦福学霸被迫缺席毕业典礼,现仍需每天卧床16小时:我本该享受20岁的人生啊...
- 火车WiFi春天已到来?
- 数据库锁与加锁情况介绍(记录锁、间隙锁、next-key锁)
- mysql数据库中学分的简写_一些数据库相关词汇缩写
- Synctoy定时自动同步数据
- Netty解析JT808协议
- Moo Volume
- 手机常用零件介绍与用法
热门文章
- python爬取cctalk视频_新媒体编辑怎么批量爬取数据
- c语言结构体tdl,计算机等级二级C笔试考前练习习题(21)
- 操作系统实验_Chcore -- 上交IPADS操作系统银杏书配套Lab实验笔记 - Lab2内存管理(一)...
- python与matlab哪个更容易学-详解python和matlab的优势与区别
- springBoot项目启动去掉多余的启动日志
- 详解浏览器 428 状态码 428 Precondition Required
- js中判断数组中是否包含某元素的方法
- MYSQL5.6 设置root用户密码
- 在命令行启动vscode
- 在不改变链表的情况下从尾到头打印连表