Android开发中使用Glide添加依赖库build.gradle出现问题


添加implementation 'com.github.bumptech.glide:glide:4.9.0'后一直报错

 

 


修改方式:
implementation ("com.github.bumptech.glide:glide:4.9.0") {
exclude group: "com.android.support"
}
原因:因为glide 内部也引入了com.android.support:appcompat-v7。版本对应为
COMPILE_SDK_VERSION=27
TARGET_SDK_VERSION=27 ANDROID_SUPPORT_VERSION=27.1.0 

参考http://bumptech.github.io/glide/doc/download-setup.html#android-sdk-requirements
https://segmentfault.com/q/1010000013361461?utm_source=tag-newest


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM