文章 2024-05-06 来自:开发者社区

Android中Glide加载Https图片失败的解决方案

1.在使用Glide前调用 Glide.get(this).getRegistry().replace(GlideUrl.class, InputStream.class, new OkHttpUrlLoader.Factory(getNoCheckOkHttpClient())); ...

文章 2023-06-28 来自:开发者社区

使用Glide加载https网址图片

最近有网友问我怎么加载https图片,说是从网上找了很多办法都没成功,然后我就问他用的是什么图片加载工具,回答是glide,然后我自己也去网上找了一下,千篇一律的都说是结合okhttp来使用,修改okhttp的三个类,忽略认证,结果是没成功,还是加载不了https图片;还有一个最多的就是换图片加载工具:“UniversalImageLoader”,具体用法就自己看,这个图片加载已经不在主流里面了....

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

产品推荐

{"cardStyle":"productCardStyle","productCode":"aliyun","productCardInfo":{"productTitle":"从 HTTP 到 HTTPS 让网站更安全","productDescription":"本方案介绍如何在ECS上搭建Web应用以及在Nginx服务器上部署SSL证书开启HTTPS安全访问。","productContentLink":"https://www.aliyun.com/solution/tech-solution/ssl","isDisplayProductIcon":true,"productButton1":{"productButtonText":"方案详情","productButtonLink":"https://www.aliyun.com/solution/tech-solution/ssl"},"productButton2":{"productButtonText":"方案部署","productButtonLink":"https://help.aliyun.com/document_detail/2684684.html"},"productButton3":{"productButtonText":"查看更多技术解决方案","productButtonLink":"https://www.aliyun.com/solution/tech-solution/"},"productPromotionInfoBlock":[{"$id":"0","productPromotionGroupingTitle":"解决方案推荐","productPromotionInfoFirstText":"全面安全保障:等保 2.0 解决方案","productPromotionInfoFirstLink":"https://www.aliyun.com/solution/tech-solution/mlps-compliance-solution","productPromotionInfoSecondText":"企业多账号身份权限集中管理","productPromotionInfoSecondLink":"https://www.aliyun.com/solution/tech-solution/cmomaip"}],"isOfficialLogo":false},"activityCardInfo":{"activityTitle":"","activityDescription":"","cardContentBackgroundMode":"LightMode","activityContentBackgroundImageLink":"","activityCardBottomInfoSelect":"activityPromotionInfoBlock"}}

飞天洛神云网络

阿里云飞天洛神云网络

+关注