Why Glide Is Not Loading Https Images In Android?
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://
Solution 1:
Try downgrading to some previous version ex.
compile 'com.github.bumptech.glide:glide:3.7.0'
Have a look at this answer: Glide does not resolve its method
Solution 2:
yes it is not working, same Problem i have found in Picasso and glide also but i have solved it by using below link.
Solution 3:
It works for me by using dependancy Android-Universal-Image-Loader
implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
load image
private DisplayImageOptions options;
privatevoidLoadImage(String image_url) {
ImageLoader.getInstance().init(ImageLoaderConfiguration.createDefault(getActivity()));
options = new DisplayImageOptions.Builder()
.showImageOnFail(R.drawable.ic_error)
.cacheInMemory(true)
.cacheOnDisk(true)
.considerExifParams(true)
.bitmapConfig(Bitmap.Config.RGB_565)
.displayer(new RoundedBitmapDisplayer(20))
.build();
ImageLoader imageLoader = ImageLoader.getInstance();
//mImageViewOne : image view
imageLoader.displayImage(image_url,mImageViewOne,options);
}
Post a Comment for "Why Glide Is Not Loading Https Images In Android?"