为什么Glide不在android中加载https图像? [英] Why Glide is not loading https images in android?
问题描述
我正在尝试使用Glide在imageview中加载https图像。图像未加载,但如果我提供一些本地图像(例如R.drawable.error_image),则会加载。
I am trying to load https images in imageview using Glide. The image is not loading, but if I provide some local image (ex. R.drawable.error_image), it loads.
imagePath = https://s-media-cache-ak0.pinimg.com/ 736x / D3 / 6B / 83 / d36b83e986e500aa7f39c722970f1f97.jpg ; //示例图片来自互联网
imagePath = "https://s-media-cache-ak0.pinimg.com/736x/d3/6b/83/d36b83e986e500aa7f39c722970f1f97.jpg"; // Sample image took from internet
Glide.with(this)
.load(imagePath)
.into(landingImage);
compile'com.github.bumptech.glide:glide:4.0。 0-RC0'
compile 'com.github.bumptech.glide:glide:4.0.0-RC0'
我试图在SOF中搜索,但没有得到修复。提前感谢您的建议。
I tried to search in SOF also but did't get fix. Give suggestions thanks in advance.
推荐答案
尝试降级到以前的某些版本。
Try downgrading to some previous version ex.
compile'com.github.bumptech.glide:glide:3.7.0'
看看这个答案:
Glide无法解决其方法
这篇关于为什么Glide不在android中加载https图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!