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

猜你喜欢

转载自www.cnblogs.com/kinoyo/p/11880317.html