I am trying to load an image from not-secure link (not have SSL certificate) using Coil Library in Kotlin and it failed to load it and load error image.
Is there any way to load image from not-secure link ?
Question posted in Android Studio
The official documentation can be found here.
The official documentation can be found here.
2
Answers
Add this line to your
AndroidManifest.xml
in the<application>
tag:Here is a solution working with Coil 1.0/2.0.
It’s not a perfect solution because the okhttp cache is not shared with the default ImageLoader, but in my case it could help for a specific part of the application where I have unknown image url coming from 3rd party provider (Amazon Prime and so on). I use it in Android TV launcher with image urls coming for recommandation channel.
At the beginning of my class, I instanciate it with