Android: SkImageDecoder:: Factory returned null

Solution 1:

I have encountered the same problem. And also I make sure the url is correct to download the image. By debugging the code, I found the variable of position in inputstream was set to 1024 after the first decode. So I add inputstream.reset() before the second decode. That works. Hope can help others.

Solution 2:

This might be a rare case but for those of you using Picasso you'll see this error if you try to load an image from URL but the URL doesn't refer to an image.

For example:
http://www.google.ca
instead of:
https://www.google.ca/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png