SkImageDecoder::Factory returned null

蓝咒 提交于 2019-12-20 01:40:35

问题


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 (:



来源:https://stackoverflow.com/questions/10864729/skimagedecoderfactory-returned-null

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!