AndroidX中Glide包冲突问题

> Duplicate class android.support.v4.app.INotificationSideChannel found in modules core-1.3.0-runtime (androidx.core:core:1.3.0) and support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)

Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules core-1.3.0-runtime (androidx.core:core:1.3.0) and support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)

Duplicate class android.support.v4.app.INotificationSideChannel S t u b Stub StubProxy found in modules core-1.3.0-runtime (androidx.core:core:1.3.0) and support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)

Duplicate class android.support.v4.os.IResultReceiver found in modules core-1.3.0-runtime (androidx.core:core:1.3.0) and support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)

Duplicate class android.support.v4.os.IResultReceiver$Stub found in modules core-1.3.0-runtime (androidx.core:core:1.3.0) and support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)

Duplicate class android.support.v4.os.IResultReceiver S t u b Stub StubProxy found in modules core-1.3.0-runtime (androidx.core:core:1.3.0) and support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)

Duplicate class android.support.v4.os.ResultReceiver found in modules core-1.3.0-runtime (androidx.core:core:1.3.0) and support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)

Duplicate class android.support.v4.os.ResultReceiver$1 found in modules core-1.3.0-runtime (androidx.core:core:1.3.0) and support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)

Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules core-1.3.0-runtime (androidx.core:core:1.3.0) and support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)

Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules core-1.3.0-runtime (androidx.core:core:1.3.0) and support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

根据日志看是引用冲突问题,用了排除依赖的方法依然不行。

总结

最后为了帮助大家深刻理解Android相关知识点的原理以及面试相关知识,这里放上相关的我搜集整理的14套腾讯、字节跳动、阿里、百度等2021最新面试真题解析,我把技术点整理成了视频和PDF(实际上比预期多花了不少精力),包知识脉络 + 诸多细节。

2020面试真题解析
腾讯面试真题解析

阿里巴巴面试真题解析

字节跳动面试真题解析
网上学习 Android的资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。

网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。

需要这份系统化学习资料的朋友,可以戳这里获取

一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!

迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!**

  • 30
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
Android Glide是一个用于加载和缓存图片的强大的开源库。作为一个强大的图片加载库,Glide提供了许多有用的功能,如内存和磁盘缓存、动态的图片调整、加载GIF图片、加载视频帧等。通过Glide的链式调用,我们可以轻松地将图片加载到ImageView,并且可以通过设置缩略图、占位图、加载失败图等来提供更好的用户体验。 在Android项目使用Glide非常简单,只需要在项目的build.gradle文件添加对Glide依赖即可。在build.gradle文件的dependencies添加以下代码即可引入Glide库: ```java implementation 'com.github.bumptech.glide:glide:4.12.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0' ``` 引入Glide库后,我们可以使用Glide的API来加载网络图片、本地图片、资源图片等,同时可以设置图片的大小、缩略图等属性。Glide的图片加载效率高,占用内存低,而且兼容性良好,可以在不同版本Android系统良好地运行。同时,Glide还支持GIF动图的加载和播放,使得我们可以更加灵活地展示动态图片。 总的来说,Android Glide是一个非常优秀的图片加载库,通过简单的几行代码就能够实现图片的加载和缓存,并且提供了丰富的功能和配置选项,可以满足不同场景下的图片加载需求。因此,我强烈推荐在Android开发使用Glide库来处理图片加载和缓存的相关操作。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值