Closed JeffreyCA closed 7 years ago
Same issue for me too. Cannot find a work around. UnsafeOkHttpGlideModule also don't work. Please help.
Hi JeffreyCA, try the following link below. I solved my issue by using it. https://github.com/square/okhttp/issues/2372
I have just modified my UnsafeOkHttpClient, as needed, by using the code in that link. It worked for me.
Glide Version: 3.7.0
Integration libraries:
Default - fails OkHttp/3 - fails
load failed: javax.net.ssl.SSLHandshakeException
Volley - failsjava.util.concurrent.ExecutionException: com.android.volley.NoConnectionError: javax.net.ssl.SSLHandshakeException
Device/Android Version: Fails on devices running 4.4 and lower. I've only tested on Android emulators, I unfortunately do not have a physical device running 4.4 or lower.
Issue details / Repro steps / Use case background: This problem seems to occur on images hosted on the nasa domain only (HTTPS). They recently moved everything from HTTP to HTTPS. It loads on Android versions greater than 5.0.
E.g., https://apod.nasa.gov/apod/image/1701/ic4406_hubble_960.jpg
For instance, this HTTPS image from Wikipedia loads perfectly using Glide: https://upload.wikimedia.org/wikipedia/en/a/a9/Example.jpg
Glide load line /
GlideModule
(if any) / list Adapter code (if any):Layout XML:
Stack trace / LogCat:
OkHttp v2
OkHttp3 v3.5.0
I've tried many workarounds posted on StackOverflow, none seem to work. I also tried this guide, which does not work either.