SherlockGougou / BigImageViewPager

🔥🔥🔥 BigImage ImageView ViewPager 支持超长图、超大图的图片浏览器,优化内存,支持手势放大、下拉关闭、查看原图、加载百分比、保存图片等功能。
Other
2.17k stars 247 forks source link

无法加载不受信任的证书 https图片 #18

Closed magicLanjie closed 5 years ago

magicLanjie commented 5 years ago

javax.net.ssl.SSLHandshakeException(com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: Certific

SherlockGougou commented 5 years ago

麻烦提供一下图片链接,谢谢。

magicLanjie commented 5 years ago

https://magiclanjie1920.io2c.com/static/images/bar/3.png

SherlockGougou commented 5 years ago

请问使用的是glide v3 还是 glide v4?

SherlockGougou commented 5 years ago

你可以把图片链接放到demo测试,我测试了v3 v4 都没有问题。

magicLanjie commented 5 years ago

我用的是v4 我自己本地项目里面有个图片加载,是不是冲突了?

SherlockGougou commented 5 years ago

有木有按照文档进行这一步的操作: image

magicLanjie commented 5 years ago

image

magicLanjie commented 5 years ago

我设置了的都哇

SherlockGougou commented 5 years ago

你之前的图片加载用的是什么?还有就是,项目之前有木有依赖过okhttp?版本是多少?

magicLanjie commented 5 years ago

Okhttp3 然后用的是glide 4.8

SherlockGougou commented 5 years ago

okhttp 具体版本呢?

magicLanjie commented 5 years ago

我用您的demo可以! 可能是我那个姿势没对,我自己在研究一下。谢谢您的指导

SherlockGougou commented 5 years ago

恩恩,有问题再说哈;okhttp3的版本过低,是有这个可能的,推荐使用okhttp3的最新版本: implementation 'com.squareup.okhttp3:okhttp:3.11.0'