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