一、問題
原來后端url地址是http的方式,后來改成https,然后所有采用Glide加載的圖片都無法正常顯示了。
二、解決
打開github上的glide:https://github.com/bumptech/glide/releases,找到對應(yīng)版本的
?glide-volley-integration-4.7.0.jar或者
glide-okhttp3-integration-4.7.0.jar或者引入aar
implementation'com.github.bumptech.glide:volley-integration:1.3.1@aar'
都可以。
這種問題應(yīng)該是https網(wǎng)絡(luò)請求的時候沒有設(shè)置白名單導(dǎo)致。
jar的內(nèi)容大致就是這幾個類:

現(xiàn)在我們采用volley+glide的方式
最后
在manifest上加入配置
<meta-data android:name="com.bop.dehong.config.DeHongGlideModule" android:value="GlideModule"/>