添加 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
来源: http://www.bubuko.com/infodetail-3293116.html