Android: SkImageDecoder:: Factory returned null

前端 未结 5 1086
[愿得一人]
[愿得一人] 2020-11-29 07:58

I\'m using my localhost to fetch images and to view in an ImageView. For some reason I\'m getting Factory returned null error. I\'ve looked through the code many times and I

5条回答
  •  广开言路
    2020-11-29 08:45

    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.

提交回复
热议问题