SkImageDecoder::Factory returned null

2020-04-08 12:33发布

问题:

I'm programming on Android and read images from a remote URL with this call

BitmapFactory.decodeStream( ....

Random, I get the error:

SkImageDecoder::Factory returned null

I read some thread here but not solve my problem (Use a wrapper to InputStream class, use drawable, etc)

Any Idea?

回答1:

I also had this problem... eventually i found out that the image was too big and that caused the error. I suggest you try an image that you know will fit more or less. also you can use the lib picasso:

Picasso.with(context).load("http://i.imgur.com/DvpvklR.png").into(imageView);

But for me even with picasso ive got the error... again because the image was too big.

hope it helps (: